Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

Update README.md

Emil Kowalskic2c368e661d8
diff --git a/README.md b/README.md
index 308c96b..71b999e 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,7 @@ Play around with the examples on codesandbox:
- [Drawer from right instead of bottom](https://codesandbox.io/p/devbox/drawer-direction-right-n338ml?file=%2Fapp%2Fmy-drawer.tsx%3A47%2C2)
- [Nested drawers](https://codesandbox.io/p/sandbox/drawer-non-dismissable-forked-5z2r3j?file=%2Fapp%2Fmy-drawer.tsx%3A49%2C16-49%2C246)
- [Non-dismissible](https://codesandbox.io/p/sandbox/drawer-without-scale-forked-kxh9j5?file=%2Fapp%2Fmy-drawer.tsx%3A1%2C1)
+- [Non-draggable element](https://codesandbox.io/p/devbox/drawer-with-scale-forked-hwtfws?file=%2Fapp%2Fmy-drawer.tsx%3A42%2C37)
## API Reference
@@ -65,6 +66,8 @@ Additional props:
`preventScrollRestoration`: When `true` it prevents scroll restoration when the drawer is closed after a navigation happens inside of it. Defaults to `true`.
+`[data-vaul-no-drag]`: When interacting with an elemenet with this data attribute, the drawer won't be dragged.
+
### Trigger
The button that opens the dialog. [Props](https://www.radix-ui.com/docs/primitives/components/dialog#trigger).