The default components included in Notifications are a great way to start building your application. With these components you can render inbox notification components.
The InboxNotification
component renders a single inbox notification.
The best way to get started is to import the useInboxNotifications
hook,
and loop through each of the current user’s notifications.
As well as displaying the default notification component, you can render
alternate components for different notification kinds
(the type of
notification). Below we’re rendering a different component for custom
$fileUploaded
notifications.
You can also render any plain JSX you like. Learn more about this under rendering notification kinds differently.
The InboxNotificationList
component renders your inbox notifications as a
list.
Wrap your InboxNotification
components in InboxNotificationList
to
render your notifications as an ordered HTML list, ol > li
.
It’s possible to style and localize the default components:
Learn more under styling and customization.
We use cookies to collect data to improve your experience on our site. Read our Privacy Policy to learn more.