snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
31
apps/v4/examples/aria/drawer-non-modal.tsx
Normal file
31
apps/v4/examples/aria/drawer-non-modal.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Button } from "@/styles/aria-nova/ui/button"
|
||||
import {
|
||||
Drawer,
|
||||
DrawerClose,
|
||||
DrawerContent,
|
||||
DrawerFooter,
|
||||
DrawerHeader,
|
||||
DrawerTitle,
|
||||
DrawerTrigger,
|
||||
} from "@/styles/aria-nova/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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user