Skip to content

Drawer ​

Bottom sheet (Vaul) với overlay mềm và bo góc sheet.

ts
import { Drawer, DrawerTrigger, DrawerContent } from "@minap/ui";

Examples ​

Mẫu sống trong Preview; chọn View code khi cần copy.

Usage ​

tsx
import { Button, Drawer, DrawerContent, DrawerTrigger } from "@minap/ui";

export function Example() {
  return (
    <>
      <Drawer>
        <DrawerTrigger asChild>
          <Button variant="outline" className="w-full">
            Open drawer
          </Button>
        </DrawerTrigger>
        <DrawerContent className="p-4">
          <p className="text-sm">Vaul drawer</p>
        </DrawerContent>
      </Drawer>
    </>
  );
}

Props / API ​

Prop / APITypeDefaultNotes
open / onOpenChangecontrolled—
shouldScaleBackgroundboolean—Tùy chọn Vaul

Behavior ​

  • Header / Footer / Title / Description
  • Lớp phủ mờ
  • Bo góc trên + shadow + drag handle

MINAP UI — Soft Periwinkle light, Mobile-First