Skip to content

EmptyState

<ts-empty-state> vv0.4.0

The ts-empty-state component.

Open in Storybook for interactive demos.

<ts-empty-state size="md">Content</ts-empty-state>
PropertyAttributeTypeDefaultDescription
descriptiondescriptionstring | undefinedThe description text.
headingheadingstring | undefinedThe heading text.
iconiconstring | undefinedLucide icon name displayed large.
sizesize"lg" | "md" | "sm" | "xl" | "xs"'md'The size of the empty state.
NameDescription
*(default)*Custom content below the description.
actionCTA buttons.
iconCustom icon or illustration.

Use ::part() to style internal elements:

PartDescription
actionThe action slot wrapper.
baseThe empty state container.
contentThe custom content wrapper.
descriptionThe description text.
headingThe heading element.
iconThe icon wrapper.
ts-empty-state::part(action) {
/* your custom styles */
}
<ts-empty-state size="md">Content</ts-empty-state>
import { TsEmptyState } from '@tessera-ui/react';
<TsEmptyState size="md">Content</TsEmptyState>