Skip to content

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 ReactNode Decorative icon; hidden from screen readers.
title * ReactNode
description ReactNode
action ReactNode Primary call to action.
className string

* marks a required prop.

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