Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

Update README.md

Emil Kowalski7a5038b157d0
diff --git a/README.md b/README.md
index e73e7f2..d5bbcb5 100644
--- a/README.md
+++ b/README.md
@@ -50,9 +50,13 @@ Can be controlled with the `value` and `onOpenChange` props. Can be opened by de
Additional props:
`closeThreshold`: Number between 0 and 1 that determines when the drawer should be closed. Example: ` closeThreshold` of 0.5 would close the drawer if the user swiped for 50% of the height of the drawer or more.
+
`scrollLockTimeout`: Duration for which the drawer is not draggable after scrolling content inside of the drawer. Defaults to 500ms
+
`snapPoints`: Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up. Should go from least visible. Example `[0.2, 0.5, 0.8]`.
+
`fadeFromIndex`: Index of a snapPoint from which the overlay fade should be applied. Defaults to the last snap point.
+
`modal`: When `false`it allows to interact with elements outside of the drawer without closing it. Defaults to`true`.
### Trigger