Skip to content

closeOnOutsidePointer for the Resizable Panel #48

Answered by GiyoMoon
gnosticdev asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!
This really sounds like something for the drawer. Twitter's app panel is 1/1 implementable with the drawer primitive I think. The corvu docs use the drawer for the mobile navigation and it's pretty much the same :D

Implementing this in the Resizable primitive would require a lot of additional code and tinkering, and it's not the goal of the resizable to be a dismissible layer like this.
The Resizable already has collapsible logic, you could try implementing a "close on outside pointer" event listener yourself and call .collapse() on the context/children callback.
I hope this answers your question! And thanks for the compliment, really motivates to keep going 😊

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GiyoMoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants