All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.docs.components.NotificationDrawer.examples.NotificationDrawer.md Maven / Gradle / Ivy

The newest version!
---
id: Notification drawer
section: components
cssPrefix: pf-v6-c-notification-drawer
---## Examples

### Basic

```html

Notifications

3 unread
  • Info notification: Unread info notification title

    This is an info notification description.
    5 minutes ago
  • Custom notification: Unread recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines.

    This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.
    10 minutes ago
  • Custom notification: Unread recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines.

    This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.
    20 minutes ago
  • Warning notification: Read warning notification title

    This is a warning notification description.
    20 minutes ago
  • Success notification: Read success notification title

    This is a success notification description.
    30 minutes ago
  • Success notification: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa.

    This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.
    40 minutes ago
  • Success notification: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa.

    This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.
    50 minutes ago
  • Success notification: Notification drawer item title

    This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.
    55 minutes ago
``` ### Groups ```html

Notifications

9 unread

  • Info notification: Unread info notification title

    This is an info notification description.
    5 minutes ago
  • Custom notification: Unread recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines.

    This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.
    10 minutes ago
  • Custom notification: Unread recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines.

    This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.
    20 minutes ago
  • Warning notification: Read warning notification title

    This is a warning notification description.
    20 minutes ago
  • Success notification: Read success notification title

    This is a success notification description.
    30 minutes ago
  • Success notification: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa.

    This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.
    40 minutes ago
  • Success notification: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa.

    This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.
    50 minutes ago
  • Success notification: Notification drawer item title

    This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.
    55 minutes ago

``` ### Accessibility | Attribute | Applied to | Outcome | | -- | -- | -- | | `aria-expanded="false"` | `.pf-v6-c-notification-drawer__group-toggle` | Indicates that the group notification list is hidden. | | `aria-expanded="true"` | `.pf-v6-c-notification-drawer__group-toggle` | Indicates that the group notification list is visible. | | `hidden` | `.pf-v6-c-notification-drawer__list` | Indicates that the group notification list is hidden so that it isn't visible in the UI and isn't accessed by assistive technologies. | | `tabindex="0"` | `.pf-v6-c-notification-drawer__list-item.pf-m-hoverable` | Inserts the hoverable list item into the tab order of the page so that it is focusable. | | `aria-hidden="true"` | `.pf-v6-c-notification-drawer__group-toggle-icon > *`, `.pf-v6-c-notification-drawer__list-item-header-icon > *` | Hides icon for assistive technologies. | ### Usage | Class | Applied to | Outcome | | -- | -- | -- | | `.pf-v6-c-notification-drawer` | `
` | Initiates the notification drawer. **Required** | | `.pf-v6-c-notification-drawer__header` | `
` | Initiates the notification drawer header. **Required** | | `.pf-v6-c-notification-drawer__header-title` | `

` | Initiates the notification drawer header title. **Required** | | `.pf-v6-c-notification-drawer__header-status` | `` | Initiates the notification drawer header status. | | `.pf-v6-c-notification-drawer__header-action` | `
` | Initiates the notification drawer header action. | | `.pf-v6-c-notification-drawer__header-action-close` | `
` | Initiates the notification drawer header action button. | | `.pf-v6-c-notification-drawer__body` | `
` | Initiates the notification drawer body. **Required** | | `.pf-v6-c-notification-drawer__list` | `
    ` | Initiates a notification list. **Required** | | `.pf-v6-c-notification-drawer__list-item` | `
  • ` | Initiates a notification list item. Always use with a state modifier class. **Required** | | `.pf-v6-c-notification-drawer__list-item-header` | `
    ` | Initiates a notification list item header. **Required** | | `.pf-v6-c-notification-drawer__list-item-header-icon` | `` | Initiates a notification list item header icon. **Required** | | `.pf-v6-c-notification-drawer__list-item-header-title` | `

    ` | Initiates a notification list item header title. **Required** | | `.pf-v6-c-notification-drawer__list-item-action` | `
    ` | Initiates a notification list item action. | | `.pf-v6-c-notification-drawer__list-item-description` | `
    ` | Initiates a notification list item description. **Required** | | `.pf-v6-c-notification-drawer__list-item-timestamp` | `
    ` | Initiates a notification list item timestamp. **Required** | | `.pf-v6-c-notification-drawer__group-list` | `
    ` | Initiates a notification group list. **Required when notifications are grouped** | | `.pf-v6-c-notification-drawer__group` | `
    ` | Initiates a notification group. **Required** | | `.pf-v6-c-notification-drawer__group-toggle` | `





© 2015 - 2025 Weber Informatics LLC | Privacy Policy