Skip to content

Commit

Permalink
Merge 73e6be5 into de462b3
Browse files Browse the repository at this point in the history
  • Loading branch information
agneym committed Dec 3, 2018
2 parents de462b3 + 73e6be5 commit f793959
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -119,11 +119,11 @@ The toasts inherit ToastContainer's props. **Props defined on toast supersede To

### Positioning toast

By default, all the toasts will be positionned on the top right of your browser. If a position is set on a toast, the one defined on ToastContainer will be replaced.
By default, all the toasts will be positioned on the top right of your browser. If a position is set on a `toast`, the one defined on ToastContainer will be replaced.

The following values are allowed: **top-right, top-center, top-left, bottom-right, bottom-center, bottom-left**

For convenience, toast expose a POSITION property to avoid any typo.
For convenience, `toast` expose a POSITION property to avoid any typo.

```javascript
// toast.POSITION.TOP_LEFT, toast.POSITION.TOP_RIGHT, toast.POSITION.TOP_CENTER
Expand Down Expand Up @@ -444,7 +444,7 @@ toast.update(this.toastId, {
#### Reset option or inherit from ToastContainer

If you want to inherit props from the `ToastContainer`, you can reset an option by passing null.
It's particulary usefull when you remove the `closeButton` from a toast and you want it back during the update:
It's particulary useful when you remove the `closeButton` from a toast and you want it back during the update:

```js
class Update extends Component {
Expand Down Expand Up @@ -474,7 +474,7 @@ class Update extends Component {

### Define callback

You can define two callback on toast. They are really useful when the toast are not used only to display messages.
You can define two callbacks on `toast`. They are really useful when the toast are not used only to display messages.

- onOpen is called inside componentDidMount
- onClose is called inside componentWillUnmount
Expand Down Expand Up @@ -682,7 +682,7 @@ class App extends Component {

### Replace the default transition

There is 4 built-in transition provided:
There is 4 built-in transitions provided:

<details>
<summary>Bounce</summary>
Expand Down

0 comments on commit f793959

Please sign in to comment.