Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

Update README.md

Emil Kowalskibe6d653b10f3
diff --git a/README.md b/README.md
index 22fa9ce..0375a19 100644
--- a/README.md
+++ b/README.md
@@ -54,7 +54,7 @@ Additional props:
`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]`.
+`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]`. You can also use px values, which doesn't take screen height into account.
`fadeFromIndex`: Index of a `snapPoint` from which the overlay fade should be applied. Defaults to the last snap point.