MiHCM
overlay/@mihcm/ui·v0.21.0·stable

Sheet

Slide-out panel from a screen edge. Composable: Sheet, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetClose. Dismisses on backdrop click and Escape.

Live preview

Adjust the controls on the right; the preview and code update in real time.

Settings

Adjust your account preferences below.

Sheet body content goes here. Forms, lists, or any other content.

example.tsxtsx
import { Sheet, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetClose } from '@mihcm/ui/Sheet';

export function Example() {
  return (
    <Sheet
  side="right"
  size="md"
    ></Sheet>
  );
}

Install

Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.

npx @mihcm/cli add Sheet
Copies the source into components/ds/Sheet.tsx. You own the file. Use --out to override the directory or --force to overwrite.