Components
BaseNotificationItem
One notification of the navbar menu: rich text with people and files, attachments, actions and the time.
components/ui/BaseNotificationItem.vue
View in the demo
Example
AJ
Aurelie Jessop shared Q3 report
MR
Marco Ruiz commented on Launch plan
Can we move the review to Thursday?
DL
Dax Lennox asked to join Design team
Unread notifications get a soft primary tint and a dot with an accessible “Unread” label. The time sits top right in the short format of the inbox (HH:mm today, then Yesterday, the weekday or the date). message parts are shown as a quote under the sentence, files use BaseAttachment and actions are small buttons.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
notificationrequired | { content: NotificationContent[]; read: boolean; metadata?: { files?: BaseNotificationMenuItemFileProps[]; actions?: BaseNotificationMenuItemActionProps[]; }; createdAt: Date; } | — | { content, read, metadata?, createdAt }; content is a list of text, user, file, message and post parts; message parts render as a quote under the sentence; metadata adds files and actions. |