Notification center

A bell + dropdown feed.

Notifications
  • New comment on your post
    Grace replied to you.
    2m ago
  • Build succeeded
    1h ago
  • Weekly digest is ready
    Yesterday

Empty

Notifications
  • No notifications

API reference

Inputs

PropTypeDefaultDescription
notificationsreadonly NotificationItem[][]Notification items rendered in the dropdown feed.
ariaLabelstringAccessible label for the trigger and dropdown region.
unreadLabelstringAccessible label announced for the per-item unread dot.
markAllReadLabelstringLabel for the "mark all as read" action button.
emptyLabelstringText shown when there are no notifications.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
openbooleanfalseWhether the dropdown is open. Two-way bindable with `[(open)]`.

Types

NotificationItem

FieldTypeDescription
titlestringPrimary heading text of the notification.
body?stringOptional secondary detail line shown beneath the title.
time?stringOptional timestamp label displayed under the body.
read?false | trueWhether the notification is already read (suppresses the unread dot).

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.