API Reference
Rockets React API
react-material-ui
functions
Notifications

Function: Notifications()

Notifications(props): Element

The Notifications component is a UI element used to display a notification icon with a badge showing the number of notifications. It supports customization for click handling and styling.

Parameters

ParameterTypeDescription
propsNotificationsPropsNotifications component props

Returns

Element

See

Storybook - Notifications (opens in a new tab)

Example

<Notifications
  amount={5}
  onClick={() => alert('Notification icon clicked')}
/>

Defined in

packages/react-material-ui/src/components/Notifications/Notifications.tsx:33 (opens in a new tab)