
Security News
Static vs. Runtime Reachability: Insights from Latio’s On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
@gluestack-ui/hstack
Advanced tools
A universal headless hstack component for React Native, Next.js & React
To use @gluestack-ui/hstack
, all you need to do is install the
@gluestack-ui/hstack
package:
$ yarn add @gluestack-ui/hstack
# or
$ npm i @gluestack-ui/hstack
HStack arranges its child elements horizontally, making it a suitable layout component for creating a row of items. It is worth noting that Row is just an alternative name for HStack. Here's an example how to use this package to create one:
import { Root, Spacer } from '../components/core/hstack/styled-components';
import { createHStack } from '@gluestack-ui/hstack';
const HStack = createHStack({
Root,
Spacer,
});
Default styling of all these components can be found in the components/core/hstack file. For reference, you can view the source code of the styled hstack
components.
// import the styles
import { Root, Spacer } from '../components/core/hstack/styled-components';
// import the createHStack function
import { createHStack } from '@gluestack-ui/hstack';
// Understanding the API
const HStack = createHStack({
Root,
Spacer,
});
// Using the HStack component
export default () => <HStack />;
More guides on how to get started are available here.
FAQs
A universal headless hstack component for React Native, Next.js & React
The npm package @gluestack-ui/hstack receives a total of 1,153 weekly downloads. As such, @gluestack-ui/hstack popularity was classified as popular.
We found that @gluestack-ui/hstack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.