Layout

AppNotificationMenu

The notifications bell with the unread count and the list of BaseNotificationItem.

components/layout/AppNotificationMenu.vue

Example

4
4 unread

"Mark all as read" shows while something is unread. The settings button and the "View all" footer only show when you listen to settings and view-all, so a project without a notifications page or settings never shows a button that does nothing.

Empty

With no notifications the menu shows an empty state instead of a blank list. The starter begins this way.

API

Props

Name
Type
Default
Description
notifications
required
Notification[]—The notifications, each { id, content, read, metadata?, createdAt }. An empty list shows an empty state.

Events

Name
Payload
Description
@mark-all-read—“Mark all as read” was pressed.
@settings—The settings button was pressed.
@view-all—“View all” was pressed.

The navbar reads useNotifications(), which starts from mocks/notifications.mock.ts (empty in the starter) and marks them as read; load yours from your API into its notifications.

© 2026 melsami UI.
Developer documentation for melsami UI.