v0.0.14
components

Flexbox

A simple flexbox component for arranging child elements in rows or columns with flexible alignment, spacing, and wrapping.

1
2
3

API Reference

FlexboxProps

Extends native HTML attributes inferred from the rendered element `as`.

PropertyTypeDefaultDescription
as
ElementTag
"div"HTML element to render as.
ref $bindable
HTMLElement
Reference to the rendered DOM element.
The element type is inferred from `as`.
display
union
"flex"Flex display variant
justify
union
"start"Justify content
direction
union
Flex direction
align
union
Align items
wrap
union
Flex wrap
gap
union
Flex gap
fullWidth
boolean
falseFlexbox full width
fullHeight
boolean
falseFlexbox full height
children
Snippet
Flexbox content to render

Examples

Form

Login

Card list

Card image item 1
Title 1 Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Card image item 2
Title 2 Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Card image item 3
Title 3 Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Wrap rows

1
2
3