diff --git a/playground/src/components/App.tsx b/playground/src/components/App.tsx index acde3d51..bc608962 100644 --- a/playground/src/components/App.tsx +++ b/playground/src/components/App.tsx @@ -30,7 +30,7 @@ class App extends React.Component { ...defaultProps, transition: 'bounce', type: 'default', - progress: '', + progress: 0, disableAutoClose: false, limit: 0, theme: 'light' @@ -71,6 +71,10 @@ class App extends React.Component { updateToast = () => toast.update(this.toastId, { progress: this.state.progress }); + showPriorityToast = () => { + toast('🥇 Priority toast! (prepend: true)', { prepend: true }); + }; + handleAutoCloseDelay = e => this.setState({ autoClose: e.target.value > 0 ? parseInt(e.target.value, 10) : 1 @@ -219,6 +223,14 @@ class App extends React.Component { Show Toast +
  • + +