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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQAumujy5kXaOKurr6zgTP2krHrFVXi2kj8seRYrlvq2GssUjReh5MiVpQbLFQNy9HsmcasqpBNVsXytWTw0ZDjA=

Status

import * as Status from '@dxos/react-ui/Status';

Status covers the states around content: loading, empty, failed and in progress.

import * as
import Layout
Layout
from '@dxos/react-ui/Layout';
import * as
import Status
Status
from '@dxos/react-ui/Status';
export const
const States: () => React.JSX.Element
States
= () => (
<
import Layout
Layout
.
const Flex: React.ForwardRefExoticComponent<Omit<Layout.FlexProps & {
asChild?: boolean;
}, "className"> & {
classNames?: import("@dxos/ui-types").ClassNameValue;
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>

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.

column
gap?: Layout.Gap | undefined
gap
='md'>
<
import Status
Status
.
const Progress: React.ForwardRefExoticComponent<Omit<Omit<ProgressRootProps, "children" | "defaultValue" | "max" | "min" | "value">, "className"> & {
classNames?: import("@dxos/ui-types").ClassNameValue;
} & {
value?: number;
max?: number;
indeterminate?: boolean;
error?: boolean;
countdown?: number;
paused?: boolean;
label?: string;
} & React.RefAttributes<HTMLDivElement>>

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).

label
='Importing contacts' />
<
import Status
Status
.
const Progress: React.ForwardRefExoticComponent<Omit<Omit<ProgressRootProps, "children" | "defaultValue" | "max" | "min" | "value">, "className"> & {
classNames?: import("@dxos/ui-types").ClassNameValue;
} & {
value?: number;
max?: number;
indeterminate?: boolean;
error?: boolean;
countdown?: number;
paused?: boolean;
label?: string;
} & React.RefAttributes<HTMLDivElement>>

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).

label
='Syncing' />
<
import Status
Status
.
const Skeleton: React.ForwardRefExoticComponent<Omit<Status.SkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>

A pulsing placeholder in the shape of the content it stands in for; hidden from assistive tech.

Skeleton
variant?: Status.SkeletonVariant | undefined

default is a block-tall bar, text a line of text, circle a block-sized disc (an avatar).

variant
='text' />
<
import Status
Status
.
const Empty: React.ForwardRefExoticComponent<Omit<Status.EmptyProps, "className"> & {
classNames?: import("@dxos/ui-types").ClassNameValue;
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>

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.

icon
='ph--address-book--regular'>
No contacts yet
</
import Status
Status
.
const Empty: React.ForwardRefExoticComponent<Omit<Status.EmptyProps, "className"> & {
classNames?: import("@dxos/ui-types").ClassNameValue;
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>

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
>
</
import Layout
Layout
.
const Flex: React.ForwardRefExoticComponent<Omit<Layout.FlexProps & {
asChild?: boolean;
}, "className"> & {
classNames?: import("@dxos/ui-types").ClassNameValue;
} & Pick<React.HTMLAttributes<Element>, "children" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>

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
>
);
Part When
Status.Progress A task with a known fraction, an unknown one (indeterminate) or a deadline (countdown)
Status.Steps A task with named stages
Status.Skeleton Content is loading and its shape is known
Status.Deferred Content is loading and may arrive at once. It shows the fallback only if the wait lasts
Status.Empty There is nothing to show: no items, no selection, no result
Status.Error A view failed. It shows the error and its stack
Status.ErrorBoundary A view below it may fail to render. It catches the error and shows Status.Error

Status.Progress draws a bar for a task with a known fraction, an unknown one or a deadline.

Prop Type Effect
value number Sets how far through the task is, from 0 to max
max number Sets the value of a finished task, so value is a fraction of it. 1 by default
indeterminate boolean Shows a sweep, for a task with nothing to count
error boolean Draws the bar in the error color, where a run stopped
countdown number Sets the milliseconds to empty the bar over
paused boolean Holds a countdown where it is
label string Sets the accessible name

Status.Deferred shows a fallback only if the wait lasts. Use it when content is loading and may arrive at once.

  • pending says whether to show the fallback.
  • delay is how many milliseconds pending has to hold before the fallback appears.
  • minDuration is the least time the fallback then stays.
  • fallback is a function, so an expensive fallback costs nothing when it never shows.

With delay and minDuration, a fast load never flickers.

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.

Status.Skeleton is a placeholder block. Use it when content is loading and its shape is known. variant is 'default', 'circle' or 'text'.

Status.Steps shows progress through a task with named stages.

  • steps is a count, or the stages themselves.
  • active is the stage in flight.
  • fraction is how far through that stage the task is.