Skip to content
nexubDesign System
v12.7.0

Patterns · Feedback

NotificationItem

Since v0.0.1

Single notification row for notification panels or dropdowns.

import { NotificationItem } from '@nexub/patterns';
View as Markdown

Examples

Default

New team member

Sarah joined your workspace.

Invoice paid

Invoice #1042 was paid successfully.

Props

Props
PropTypeDefaultDescription
titlerequiredstring—Notification title.
descriptionstring—Supporting text.
timestampstring—Relative time string.
readbooleanfalseUnread items get a tinted background and an "Unread" dot.
iconReact.ReactNode—Icon or avatar before the text.
hrefstring—Makes the whole item a link or a button (6.6).
onSelect(() => void)—Makes the whole item a link or a button (6.6).
onDismiss(() => void)—Shows a dismiss button.