Skip to content

Stack

Structures children in a vertical stack and sets dynamic margins between them.

Heading

Paragraph

Button
---
import { Button, Heading, Paragraph, Stack } from 'fulldev-ui'
---
<Stack>
<Heading>Heading</Heading>
<Paragraph>Paragraph</Paragraph>
<Button>Button</Button>
</Stack>

Props

align

Type: 'start' | 'center' | 'end' = 'start'

Heading

Paragraph

Button
---
import { Button, Heading, Paragraph, Stack } from 'fulldev-ui'
---
<Stack align="center">
<Heading>Heading</Heading>
<Paragraph>Paragraph</Paragraph>
<Button>Button</Button>
</Stack>

Heading

Paragraph

Button
---
import { Button, Heading, Paragraph, Stack } from 'fulldev-ui'
---
<Stack align="end">
<Heading>Heading</Heading>
<Paragraph>Paragraph</Paragraph>
<Button>Button</Button>
</Stack>

size

Type: size?: 'sm' | 'md' | 'lg'

Sets the size for this component and all its children.

theme

Type: theme?: 'light' | 'dark' | string

Changes the colors for this component and all its children.

Choose a predefined theme, or a custom value defined like explained in the theming guide.

as & HTML Attributes

Type: as?: HTMLTag = 'div'

Used to determine which HTML tag is used to render the component.

Based on the value, all HTML attributes of this tag are accepted as props too.

For a detailed explanation see Polymorphic props in the Astro documentation.