Skip to content

Commit

Permalink
Fix minor documentation erorr (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisab authored and iamhosseindhv committed May 17, 2019
1 parent 1babb5d commit 84d56ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ this.props.enqueueSnackbar('message', { variant: 'variant' })
#### `closeSnackbar`
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()

// dismiss a specific snackbar
this.props.closeSnackbar(key)

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

### **useSnackbar**:
Expand Down

0 comments on commit 84d56ae

Please sign in to comment.