Skip to content

Commit

Permalink
📝 Add explanation about 'duration' values
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Jan 28, 2017
1 parent 02f7a8a commit 4a45091
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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:
Expand Down

0 comments on commit 4a45091

Please sign in to comment.