Server Component · 0 KB client JS

Empty State

A placeholder for "no results", "nothing here yet" and recoverable-error moments. Pure composition: the whole compound renders as a Server Component and ships zero client JavaScript. Size travels to the parts via a data attribute, not context.

No messages yet
When someone writes to you, the conversation will show up here.

Import#

import { EmptyState } from "astralis-ui";

Sizes#

No results
size="sm"
No results
size="md"
No results
size="lg"

Props#

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Scales the indicator, title and description together.

Parts#

PropTypeDefaultDescription
EmptyState.Indicatordiv propsNoneMuted circle around an icon. Hidden from assistive technology, since the icon is decorative.
EmptyState.Titlediv propsNoneThe headline. It isn't a heading element, so wrap it in one when it should appear in the outline.
EmptyState.Descriptiondiv propsNoneSupporting copy, capped at a readable line length.
EmptyState.Actionsdiv propsNoneA wrapping row for one or two Buttons.