Skip to content

Spread

Structures children in a row with space between them and wrapping.

Heading

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

Props

align

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

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.