woofers / react-sheet-slide

🏞️ 🎢 🛝 A responsive React draggable sheet and dialog component
https://jaxs.onl/react-sheet-slide/
39 stars 5 forks source link

please add listener for change height of bottom sheet #3

Closed behnam-maqsudi closed 2 months ago

behnam-maqsudi commented 1 year ago

hello. can you add some props for changing current detent? and can you add a prop for disabling backdrop animation when toggle bottom sheet?

woofers commented 1 year ago

@benamm

To disable the backdrop animation you can add the following CSS:

.rss-backdrop {
  clip-path: none;
  transform: none;
  padding-top: 0;
}

Currently you can't change the selectedDetent while the sheet is open, however you can when its closed. PR are welcome if your are interested in this feature.

woofers commented 2 months ago

Going to close this out in-favour of https://github.com/woofers/react-sheet-slide/issues/16