Skip to content

Split

Equal columns above a certain breakpoint, based on CSS grid.

Heading

example
---
import { Heading, Image, Split } from 'fulldev-ui'
---
<Split>
<Heading>Heading</Heading>
<Image src="/example.jpg" />
</Split>

Props

align

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

Heading

example
---
import { Heading, Image, Split } from 'fulldev-ui'
---
<Split align="center">
<Heading>Heading</Heading>
<Image src="/example.jpg" />
</Split>

Heading

example
---
import { Heading, Image, Split } from 'fulldev-ui'
---
<Split align="end">
<Heading>Heading</Heading>
<Image src="/example.jpg" />
</Split>

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.