Skip to content
OTF Kit logoOTF Kit

Stack

Layout

Flex-based HStack and VStack layout primitives with gap, align, and justify.

View in Storybook
Stack
Loading Storybook preview…

Installation

bun add @otfdashkit/ui

Usage

Import Stack from @otfdashkit/ui.

Code
// Stack — Flex-based HStack and VStack layout primitives with gap, align, and justify.
//
// Install:
//   bun add @otfdashkit/ui

import { Stack } from '@otfdashkit/ui'

export function Example() {
  return (
    <Stack>
      {/* your content */}
    </Stack>
  )
}

Props

Props declared in the Stack source. Inherited HTML attributes are not listed.

PropTypeDefaultDescription
align'center' | 'end' | 'start' | 'stretch' | 'baseline'
direction'col' | 'row' | 'row-reverse' | 'col-reverse''col'
gapnumber
justify'center' | 'end' | 'start' | 'between' | 'around' | 'evenly'
wrapboolean

Related