mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import { Button } from "@/examples/base/ui/button"
|
|
import { Input } from "@/examples/base/ui/input"
|
|
import { Label } from "@/examples/base/ui/label"
|
|
import {
|
|
Sheet,
|
|
SheetClose,
|
|
SheetContent,
|
|
SheetDescription,
|
|
SheetFooter,
|
|
SheetHeader,
|
|
SheetTitle,
|
|
SheetTrigger,
|
|
} from "@/examples/base/ui/sheet"
|
|
|
|
export default function SheetDemo() {
|
|
return (
|
|
<Sheet>
|
|
<SheetTrigger render={<Button variant="outline" />}>Open</SheetTrigger>
|
|
<SheetContent>
|
|
<SheetHeader>
|
|
<SheetTitle>Edit profile</SheetTitle>
|
|
<SheetDescription>
|
|
Make changes to your profile here. Click save when you're done.
|
|
</SheetDescription>
|
|
</SheetHeader>
|
|
<div className="grid flex-1 auto-rows-min gap-6 px-4">
|
|
<div className="grid gap-3">
|
|
<Label htmlFor="sheet-demo-name">Name</Label>
|
|
<Input id="sheet-demo-name" defaultValue="Pedro Duarte" />
|
|
</div>
|
|
<div className="grid gap-3">
|
|
<Label htmlFor="sheet-demo-username">Username</Label>
|
|
<Input id="sheet-demo-username" defaultValue="@peduarte" />
|
|
</div>
|
|
</div>
|
|
<SheetFooter>
|
|
<Button type="submit">Save changes</Button>
|
|
<SheetClose render={<Button variant="outline" />}>Close</SheetClose>
|
|
</SheetFooter>
|
|
</SheetContent>
|
|
</Sheet>
|
|
)
|
|
}
|