# @gluestack-ui/vstack

> A universal headless vstack component for React Native, Next.js & React

Latest version **0.1.16** (published 2024-11-11) · 0 weekly downloads

## Install

```sh
npm install @gluestack-ui/vstack
pnpm add @gluestack-ui/vstack
yarn add @gluestack-ui/vstack
bun add @gluestack-ui/vstack
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.16 |
| Published | 2024-11-11 |
| First published | 2023-02-21 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5359 |
| Maintainers | rajat693, sravankumarvelangi, vaibhk002, daminipandey, rayan1810, amars29, geekgautam, gluestackadmin, geekashwini, vidhi499, mayankp06, madhavb230100, viraj-10, rohit_singh, meenumakkar, surajahmedc |
| Keywords | react, native, react-native, vstack, gluestack-ui, universal, headless, typescript, component, android, ios, nextjs |

## Links

- npm: https://www.npmjs.com/package/@gluestack-ui/vstack
- Repository: https://github.com/gluestack/gluestack-ui
- Homepage: https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/vstack#readme
- Issues: https://github.com/gluestack/gluestack-ui/issues
- npm.io page: https://npm.io/package/@gluestack-ui/vstack

## Dependencies (1)

- [@gluestack-ui/utils](https://npm.io/package/@gluestack-ui/utils.md) ^0.1.14

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.16 (latest) — 2024-11-11
- 0.1.10-alpha.0 (alpha) — 2023-07-24
- 0.1.15 — 2023-10-20
- 0.1.14 — 2023-10-19
- 0.1.13 — 2023-10-19
- 0.1.12 — 2023-10-17
- 0.1.11 — 2023-09-13
- 0.1.10 — 2023-09-05
- 0.1.9 — 2023-06-29
- 0.1.8 — 2023-06-26
- 0.1.7 — 2023-06-14
- 0.1.6 — 2023-06-09
- 0.1.5 — 2023-06-09
- 0.1.4 — 2023-06-05
- 0.1.3 — 2023-05-12
- … 4 more at https://npm.io/package/@gluestack-ui/vstack/versions

## README

# @gluestack-style/vstack

## Installation

To use `@gluestack-ui/vstack`, all you need to do is install the
`@gluestack-ui/vstack` package:

```sh
$ yarn add @gluestack-ui/vstack

# or

$ npm i @gluestack-ui/vstack
```

## Usage

VStack organizes items vertically in a layout. Alternatively, you can use Column as an alias for VStack to achieve the same layout. Here's an example how to use this package to create one:

```jsx
import { Root, Spacer } from '../components/vstack/styled-components';
import { createVStack } from '@gluestack-ui/vstack';
const VStack = createVStack({
  Root,
  Spacer,
});
```

## Customizing the vstack:

Default styling of all these components can be found in the components/core/vstack file. For reference, you can view the [source code](https://github.com/gluestack/gluestack-ui/blob/development/example/storybook/src/ui-components/VStack/index.tsx) of the styled `vstack` components.

```jsx
// import the styles
import { Root, Spacer } from '../components/vstack/styled-components';

// import the createVStack function
import { createVStack } from '@gluestack-ui/vstack';

// Understanding the API
const VStack = createVStack({
  Root,
  Spacer,
});

// Using the vstack component
export default () => <VStack />;
```

More guides on how to get started are available
[here](https://ui.gluestack.io/docs/components/layout/vstack).

---
_Source: https://npm.io/package/@gluestack-ui/vstack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
