Skip to content

Commit

Permalink
Update index.page.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton authored Oct 30, 2024
1 parent faf14d3 commit f53549d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-docs/pages/components/toast/index.page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ To control the display of toasts, you can pass an array of toast objects to the
| content | function | A function that renders the toast's content and accepts `{ onClose }` as a parameter to handle closing the toast. |
| duration | number | (Optional) Defines how long (in milliseconds) the toast should remain visible before automatically dismissing. Use `undefined` to keep the toast visible indefinitely. |

Here is an example:
Here's an example of the array of toast objects:

```jsx
[
toasts = [
{
id: 1000,
content: ({ onClose }) => (
Expand Down

0 comments on commit f53549d

Please sign in to comment.