I have a use case for this library where I want the user to be able to dismiss the sheet by swiping down on the drag handler, but not when tapping/clicking outside of the sheet. Dismiss via ESC key should also work.
I can think of 2 ways for an API:
onDimiss gets an argument like cause: "tap-outside" | "swipe-down" | "esc-key", so I can decide in the handler if I want to call setOpen(false) or not
- specific (boolean) props to turn off dismissal methods:
closeOnTapOutside, closeOnOutside, closeOnEscKey
Would you accept a PR for this feature?