You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you Emil for your amazing work.
I tried the snap points feature and it wasn't a good solution for me as the expected snap points weren't the same when i tried Firefox, also there's no way to handle the responsive part as the snap points would not be the same (or it will be a small headache with useMediaQuery)
Ideally, a perfect solution for me would be like this
<Drawer.Root><Drawer.Trigger>Open</Drawer.Trigger><Drawer.Portal><Drawer.Content>{/** some content **/}<Drawer.SnapPoint/>{/** some content **/}<Drawer.SnapPoint/>{/** some content **/}<Drawer.SnapPoint/></Drawer.Content><Drawer.Overlay/></Drawer.Portal></Drawer.Root>
If you are okey, i would like to work on this 😊
Any thoughts?
The text was updated successfully, but these errors were encountered:
The idea was to make a discussion on how to implement it 😊.
i was thinking about something like this
constSnapPoint=()=>{const{ parentRef, setSnapPoints }=useContext(drawerContext)constref=useRef(null)useEffect(()=>{// calculate the offset and set it},[])return<divref={ref}/>}
First of all, thank you Emil for your amazing work.
I tried the snap points feature and it wasn't a good solution for me as the expected snap points weren't the same when i tried Firefox, also there's no way to handle the responsive part as the snap points would not be the same (or it will be a small headache with useMediaQuery)
Ideally, a perfect solution for me would be like this
If you are okey, i would like to work on this 😊
Any thoughts?
The text was updated successfully, but these errors were encountered: