Skip to content

An opinionated toast component for React.

Update Docs

emilkowalskib9df296b0efc
diff --git a/website/src/pages/toast.mdx b/website/src/pages/toast.mdx
index bedc954..8a7eda0 100644
--- a/website/src/pages/toast.mdx
+++ b/website/src/pages/toast.mdx
@@ -91,7 +91,7 @@ toast.promise(myPromise, {
You can pass jsx as the first argument instead of a string to render a custom toast while maintaining default styling.
```jsx
-toast(<div>A custom toast with default styling</div>);
+toast(<div>A custom toast with default styling</div>, { duration: 5000 });
```
### Headless