Skip to content

Commit

Permalink
[docs] add customization section to notifications (#4672)
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Niklas <[email protected]>
Signed-off-by: Jan Potoms <[email protected]>
Co-authored-by: Jan Potoms <[email protected]>
  • Loading branch information
Firgrep and Janpot authored Feb 12, 2025
1 parent ea0e2c6 commit 6dc29be
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ Notification providers can be nested. That way you can scope the notifications t

{{"demo": "ScopedNotification.js"}}

## Customization

To customize the notification experience, such as the position of the notification, provide a custom [`Snackbar`](https://mui.com/material-ui/react-snackbar/) configuration to the `NotificationsProvider`. When applied at the provider level, this configuration globally sets the behavior for all notifications in your application.

```tsx
<NotificationsProvider
slotProps={{
snackbar: {
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
},
}}
>
```

## 🚧 Notification center

When multiple notifications are available, click the badge to open the notification center to show a scrollable list of all available notifications. This feature is not available yet.
Expand Down

0 comments on commit 6dc29be

Please sign in to comment.