Primitive

Stack

Vertical and horizontal stacks with token-based gaps.

Stack as rendered in the Native-UI Storybook

What it does

  • VStack and HStack
  • Gap from spacing tokens
  • Align, justify and wrap

Import

import { VStack, HStack } from '@polprog/native-ui';

The same module is available as a direct import:

import { VStack, HStack } from '@polprog/native-ui/primitives/Stack';

Open in Storybook View source

Related components

← All components

Expo React Native 0.84+ iOS Android TypeScript Accessible