Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

EmptyState

Open .md
Live preview

Loading example…

EmptyState is part of the States set, imported from @jcsoftdev/ui/states.

import { EmptyState } from "@jcsoftdev/ui/states";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/states/empty-state.

<EmptyState
icon={<CalendarX className="size-8" />}
title="Sin citas para hoy"
description="Cuando un cliente reserve, su cita aparecerá aquí."
action={<Button>Nueva cita</Button>}
/>
Prop Type Default Description
icon string | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode> | null Decorative icon (hidden from screen readers): a node, or "inbox", "search", "lock".
title * ReactNode
description ReactNode
action ReactNode Primary call to action.
variant "plain" | "outlined" "plain" outlined draws a dashed border around the state.
size "sm" | "md" "md" md (default) is the centered block state. sm is the inline state for a list, a table cell or a card body: one muted row (icon, title, description) with the action after it.
className string

* marks a required prop.

packages/ui/src/states/empty-state/empty-state.tsx