Skip to content

Commit

Permalink
docs: add API reference for Toaster component
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Aug 1, 2024
1 parent 40018fa commit 77ddb5e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions website/app/routes/toaster.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,14 @@ You can change this value using the `toastFont` prop. In this case, we are using
```jsx
<Toaster toastFont="font-sans" />
```

## API Reference

The `<Toaster />` component accepts the following options:

| Property | Description | Type | Required |
| ----------- | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| `theme` | Theme of the all toasts | `Theme` (default: `system`): `'light'`, `'dark'`, or `'system'` | - |
| `maxToasts` | Maximum number of toasts to display | `number` | - |
| `position` | Position of the toaster on the screen | `Position` (default: `bottom-right`): `'top-left'`, `'top-right'`, `'top-center'`, `'bottom-left'`, `'bottom-right'` or `'bottom-center'` | - |
| `toastFont` | Font style for the all toasts | `string` | - |

0 comments on commit 77ddb5e

Please sign in to comment.