Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhosseindhv authored May 16, 2019
1 parent f05fe52 commit 1babb5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,13 @@ this.props.enqueueSnackbar('message', { variant: 'variant' })
```

#### `closeSnackbar`
Dismiss snackbar with the given key.
Dismiss snackbar with the given key. You can close all snackbars at once by not passing a key to this function.
```javascript
this.props.closeSnackbar(key)

// dismiss all open snackbars
this.props.closeSnackbar()

// id returned by enqueueSnackbar - in order to reference a snackbar
key type: string|number required: true
```
Expand Down

0 comments on commit 1babb5d

Please sign in to comment.