One-axis layout box: the primitive that replaces hand-written flex … wrapper divs.
gap is restricted to the named steps of the theme spacing ramp (see
Gap
), which is the
point of the prop — an off-ramp gap-2/gap-3 literal in a container is the drift it prevents.
Anything the props don't cover (padding, sizing, overflow, colour) goes through classNames; the
component deliberately grows no padding or colour props, since components own their own spacing.
There is no implicit align. Row-centering is the common case, but defaulting it would silently
restyle any consumer relying on the CSS stretch initial value.
Use asChild to project the layout onto a semantic element (<header>, <ul>, <a>).
@example
<Flex column gap='sm'>…</Flex>
<Flex gap='sm' justify='end'>…</Flex>
<Flex center classNames='h-full text-fg-subtle' role='status'>{t('empty.message')}</Flex>
Flex
column?: boolean | undefined
Stack on the block axis instead of the inline axis.
Ark's linear progress as a single thin bar: a track and its range, determinate, indeterminate or a countdown. A host
supplies any label or readout around it.
Progress
value?: number | undefined
How far through, from 0 to max; ignored when indeterminate or countdown.
value={0.6}
label?: string | undefined
Names the progressbar (aria-label on Ark's track).
Ark's linear progress as a single thin bar: a track and its range, determinate, indeterminate or a countdown. A host
supplies any label or readout around it.
Progress
indeterminate?: boolean | undefined
A sweep for a task with nothing to count.
indeterminate
label?: string | undefined
Names the progressbar (aria-label on Ark's track).
Stands in for content that is not there (no items, no selection, no result): a centred status message, its text the
children or the translated "No items". Composites build their own Empty part on it.
Empty
icon?: string | undefined
A Phosphor icon above the message; decorative, since the message carries the statement.
Stands in for content that is not there (no items, no selection, no result): a centred status message, its text the
children or the translated "No items". Composites build their own Empty part on it.
One-axis layout box: the primitive that replaces hand-written flex … wrapper divs.
gap is restricted to the named steps of the theme spacing ramp (see
Gap
), which is the
point of the prop — an off-ramp gap-2/gap-3 literal in a container is the drift it prevents.
Anything the props don't cover (padding, sizing, overflow, colour) goes through classNames; the
component deliberately grows no padding or colour props, since components own their own spacing.
There is no implicit align. Row-centering is the common case, but defaulting it would silently
restyle any consumer relying on the CSS stretch initial value.
Use asChild to project the layout onto a semantic element (<header>, <ul>, <a>).
@example
<Flex column gap='sm'>…</Flex>
<Flex gap='sm' justify='end'>…</Flex>
<Flex center classNames='h-full text-fg-subtle' role='status'>{t('empty.message')}</Flex>
Status.Empty is the message for a view with nothing to show. Its children are the message, or the translated “No
items” when there are none. Use icon to add an icon above the message.