Skip to content

An opinionated toast component for React.

fix(docs): fix typo in cancel button docs (#186)

Ahmed Abdelbasetde07b0cf286a
diff --git a/website/src/pages/toast.mdx b/website/src/pages/toast.mdx
index 5c746a3..d95f063 100644
--- a/website/src/pages/toast.mdx
+++ b/website/src/pages/toast.mdx
@@ -64,7 +64,7 @@ Renders a secondary button, clicking it will close the toast and run the callbac
```jsx
toast('My cancel toast', {
- action: {
+ cancel: {
label: 'Cancel',
onClick: () => console.log('Cancel!'),
},