-
-
Notifications
You must be signed in to change notification settings - Fork 335
Open
Description
- the drawer is not rendering when snappoints is set
- demo:
Screen.Recording.2025-05-02.at.12.34.39.mov
- code:
const snapPoints = ['400px', 0.8];
const [snap, setSnap] = useState<number | string | null>(snapPoints[0]);
...
{isMobile && (
<Drawer
setActiveSnapPoint={setSnap}
activeSnapPoint={snap}
snapPoints={snapPoints}
modal={false}
dismissible={false}
defaultOpen
handleOnly
>
<DrawerTrigger asChild>
<Button>Open</Button>
</DrawerTrigger>
<DrawerContent>
<Handle />
<DrawerHeader>
<DrawerTitle>Sign In</DrawerTitle>
</DrawerHeader>
<section>Something</section>
</DrawerContent>
</Drawer>
)}gukii and lildesert
Metadata
Metadata
Assignees
Labels
No labels