--- id: Notification badge section: components cssPrefix: pf-v5-c-notification-badge ---import './NotificationBadge.css' ## Examples ### Basic ```html


``` ### With count ```html


``` ### Expanded ```html


``` ## Documentation ### Overview Always add a modifier class to indicate read, unread, or attention state. Never use the class `.pf-v5-c-notification-badge` on its own. This component is designed to be used within a dark component such as the [masthead](/components/masthead). ### Accessibility Be sure that the component associated with this indicator handles screen reader text indicating read or unread notifications. ### Usage | Class | Applied to | Outcome | | -- | -- | -- | | `.pf-v5-c-notification-badge` | `
` | Initiates a notification badge. **Always use it with a modifier class.** | | `.pf-v5-c-notification-badge__count` | `` | Initiates a notification badge count. | | `.pf-m-read` | `.pf-v5-c-notification-badge` | Applies read notification badge styling. | | `.pf-m-unread` | `.pf-v5-c-notification-badge` | Applies unread notification badge styling. | | `.pf-m-attention` | `.pf-v5-c-notification-badge` | Applies attention notification badge styling. | | `.pf-m-expanded` | `.pf-v5-c-notification-badge` | Applies expanded notification badge styling. |