structyl

The full prop reference for the Stack component. Arranges children in a row or column with consistent spacing.

Import

tsx
import { Stack } from '@structyl/styled';

Props

Stack

Flex stack layout.

PropTypeDefault
direction#'row' | 'row-reverse' | 'column' | 'column-reverse'

Flex direction.

'column'
spacing#'none' | 'xs' | 'sm' | 'md' | 'lg' | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8

Gap between children.

'md'
divider#React.ReactNode

Inserted between children.

alignItems#'start' | 'center' | 'end' | 'stretch' | 'baseline'

Cross-axis alignment.

justifyContent#'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'

Main-axis alignment.

flexWrap#'nowrap' | 'wrap' | 'wrap-reverse'

Flex wrapping behavior.

className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library