AsterUIDocsv1.0.2

Docs / Component reference

Sheet (Drawer)

Open a panel from the edge of a page for a task that needs more room than a popover.

Sheet example

Install

sh
npx @fierst/ui@1.0.2 add sheet

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

Exports from ./ui/sheet: SheetSide, Sheet.

Download the registry source for sheet 1.0.2.

API contracts

ts
export type SheetSide = 'right' | 'left' | 'bottom';

export function Sheet({
  id,
  open,
  side = 'right',
  title,
  description,
  footer,
  onClose,
  class: extraClass,
  children,
}: {
  id?: string;
  open?: any;
  side?: SheetSide;
  title?: string;
  description?: string;
  footer?: View;
  onClose?: () => void;
  class?: string;
  children?: View;
})