34 lines
882 B
TypeScript
34 lines
882 B
TypeScript
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>
|
|
)
|
|
}
|