32 lines
947 B
TypeScript
32 lines
947 B
TypeScript
import { Button } from "@/styles/base-rhea/ui/button"
|
|
import {
|
|
Drawer,
|
|
DrawerClose,
|
|
DrawerContent,
|
|
DrawerFooter,
|
|
DrawerHeader,
|
|
DrawerTitle,
|
|
DrawerTrigger,
|
|
} from "@/styles/base-rhea/ui/drawer"
|
|
|
|
export function DrawerNonModal() {
|
|
return (
|
|
<Drawer modal={false} disablePointerDismissal swipeDirection="right">
|
|
<DrawerTrigger render={<Button variant="outline" />}>
|
|
Non Modal
|
|
</DrawerTrigger>
|
|
<DrawerContent>
|
|
<DrawerHeader>
|
|
<DrawerTitle>Non Modal Drawer</DrawerTitle>
|
|
</DrawerHeader>
|
|
<div className="flex-1 p-4">
|
|
<div className="rounded-2xl bg-muted group-data-[swipe-axis=x]/drawer-popup:size-full group-data-[swipe-axis=y]/drawer-popup:h-80 group-data-[swipe-axis=y]/drawer-popup:w-full" />
|
|
</div>
|
|
<DrawerFooter>
|
|
<DrawerClose render={<Button />}>Close</DrawerClose>
|
|
</DrawerFooter>
|
|
</DrawerContent>
|
|
</Drawer>
|
|
)
|
|
}
|