-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
The snappoints are preventing the drawer from rendering also it's not working with defaultOpen
demo:
Screen.Recording.2025-05-02.at.12.12.33.mov
code:
const [snap, setSnap] = useState<number | string | null>(snapPoints[0]);
...
{isMobile && (
<Drawer setActiveSnapPoint={setSnap} activeSnapPoint={snap} snapPoints={snapPoints}>
<DrawerTrigger asChild>
<Button>Open</Button>
</DrawerTrigger>
<DrawerContent>
<DrawerHeader>
<DrawerTitle>Sign In</DrawerTitle>
</DrawerHeader>
<section>Something</section>
</DrawerContent>
</Drawer>
)}Metadata
Metadata
Assignees
Labels
No labels