Saltar al contenido
El Muestrario

componente · @solu30/ui-kit/display

EmptyState

El componente, montado

Cargando el espécimen…

Cargando el chunk del paquete instalado…

De dónde se importa

import { EmptyState } from '@solu30/ui-kit/display'

Props

10 props declaradas en los tipos de la versión instalada.
PropRequeridaTipoQué hace
iconopcionalIconComponent$1Icon component from lucide-react. Must be passed from a Client Component — function refs are NOT serializable across the RSC boundary. For Server Components use `iconName` instead.
iconNameopcionalIconNameIcon name string from lucide-react (e.g. "package", "inbox"). Safe to pass from Server Components. Resolved via the injected `resolveIcon` prop below — without it, `iconName` renders nothing (does not crash). Takes priority over `icon` when both are provided. ADR-192
resolveIconopcional(name: string) => IconComponent$1 | undefinedResolver for `iconName` (and for `action(s).iconName`) — injected by the consumer, NEVER imported here (ADR-194). For the "any Lucide icon by name" DX, import `resolveLucideIcon` from `@solu30/ui-kit/dynamic-icon` (same isolated subpath as always) and pass it. Without `resolveIcon`, an `iconName` renders nothing — it doesn't break the layout. @example import { resolveLucideIcon } from '@solu30/ui-kit/dynamic-icon' <EmptyState iconName="package" resolveIcon={resolveLucideIcon} title="No packages" />
titlestringMain title text
messageopcionalstringDescription text below title
descriptionopcionalstringSecondary description
actionopcionalEmptyStateActionSingle action button (legacy, use actions for multi-button)
actionsopcionalEmptyStateAction[]Multiple action buttons rendered in a row
variantopcional"default" | "dashed" | "inline"Visual variant
classNameopcionalstringAdditional CSS classes