Skip to main content

Stack

Vertical layout component with configurable spacing between children.

Import​

import { Stack } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={12}>
  <Text>First</Text>
  <Text>Second</Text>
  <Text>Third</Text>
</Stack>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included

Changelog​

See GitHub Releases for version history.