Command Palette

Search for a command to run...

Docs
Stack

Stack

A container component for arranging elements vertically or horizontally.

Loading...

Installation

pnpm dlx shadcn@latest add "https://akasha-ui.pages.dev/r/styles/default/stack.json"

Usage

import { Stack } from "<path-to-ui-components>/stack";
<Stack>
  <div>Item 1</div>
  <div>Item 2</div>
  <div>Item 3</div>
</Stack>

Props

NameTypeDescription
justifyContentstart, center, end, between, evenly, around or stretchDetermines the alignment of flex items along the container's main axis. For more details on Tailwind utilities for each value, refer to the doc.
alignItemsstart, center, end, baseline or stretchDefines the alignment of flex items along the container's cross axis. For more details on Tailwind utilities for each value, refer to the doc.
directionrow, rowReverse, column or columnReverseDetermines the direction of flex items. For more details on Tailwind utilities for each value, refer to the doc.
dividerbooleanAdd borders between items. For detailed information about the associated Tailwind utilities, please refer to the doc.

Examples

Align Items

Loading...

Direction

Loading...

Divider

Loading...

Justify Content

Loading...