
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@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 814 weekly downloads. As such, @gluestack-ui/hstack popularity was classified as not 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.