diff --git a/README.md b/README.md index d58625d..ce5b930 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Or, to include an action button: ```js Snackbar.show({ title: 'Hello world', + duration: Snackbar.LENGTH_LONG, action: { title: 'UNDO', color: 'green', @@ -33,6 +34,12 @@ Snackbar.show({ }); ``` +Where `duration` can be one of the following: + +- `Snackbar.LENGTH_SHORT` (about a second) +- `Snackbar.LENGTH_LONG` (about three seconds) +- `Snackbar.LENGTH_INDEFINITE` (stays on screen until the button is pressed) + ## Installation Here's how to use it: