snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
33
apps/v4/examples/base/drawer-sides.tsx
Normal file
33
apps/v4/examples/base/drawer-sides.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Button } from "@/styles/base-rhea/ui/button"
|
||||
import {
|
||||
Drawer,
|
||||
DrawerClose,
|
||||
DrawerContent,
|
||||
DrawerDescription,
|
||||
DrawerFooter,
|
||||
DrawerHeader,
|
||||
DrawerTitle,
|
||||
DrawerTrigger,
|
||||
} from "@/styles/base-rhea/ui/drawer"
|
||||
|
||||
export function DrawerWithSides() {
|
||||
return (
|
||||
<Drawer swipeDirection="left">
|
||||
<DrawerTrigger render={<Button variant="secondary" />}>
|
||||
Open Left Drawer
|
||||
</DrawerTrigger>
|
||||
<DrawerContent>
|
||||
<DrawerHeader>
|
||||
<DrawerTitle>Move Goal</DrawerTitle>
|
||||
<DrawerDescription>Set your daily activity goal.</DrawerDescription>
|
||||
</DrawerHeader>
|
||||
<div className="flex-1 p-4">
|
||||
<div className="size-full rounded-2xl bg-muted" />
|
||||
</div>
|
||||
<DrawerFooter>
|
||||
<DrawerClose render={<Button />}>Close</DrawerClose>
|
||||
</DrawerFooter>
|
||||
</DrawerContent>
|
||||
</Drawer>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user