
Security News
vlt Launches Real-Time Dependency Analysis Powered by Socket
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
@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
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
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.