EmptyState
Loading example…
EmptyState is part of the States set, imported from @jcsoftdev/ui/states.
Import
Section titled “Import”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.
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/states/empty-state/empty-state.tsx