mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-09 06:55:07 +00:00
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import { Button } from "@/styles/radix-nova/ui/button"
|
|
import { Input } from "@/styles/radix-nova/ui/input"
|
|
import { Label } from "@/styles/radix-nova/ui/label"
|
|
import {
|
|
Sheet,
|
|
SheetClose,
|
|
SheetContent,
|
|
SheetDescription,
|
|
SheetFooter,
|
|
SheetHeader,
|
|
SheetTitle,
|
|
SheetTrigger,
|
|
} from "@/styles/radix-nova/ui/sheet"
|
|
|
|
export default function SheetDemo() {
|
|
return (
|
|
<Sheet>
|
|
<SheetTrigger asChild>
|
|
<Button variant="outline">Open</Button>
|
|
</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 asChild>
|
|
<Button variant="outline">Close</Button>
|
|
</SheetClose>
|
|
</SheetFooter>
|
|
</SheetContent>
|
|
</Sheet>
|
|
)
|
|
}
|