AsterUIDocsv1.0.2

Docs / Component reference

EmptyState

Tell the reader why a list has no entries and give them a first action when one is available.

Empty state example

Install

sh
npx @fierst/ui@1.0.2 add empty-state

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/empty-state: EmptyState.

Download the registry source for empty-state 1.0.2.

API contracts

ts
export function EmptyState({
  title,
  description,
  icon = Inbox,
  action,
  class: extraClass,
}: {
  title: string;
  description?: string;
  icon?: LucideIconInput;
  action?: View;
  class?: string;
})