Patterns · Feedback
NotificationItem
Since v0.0.1
Single notification row for notification panels or dropdowns.
import { NotificationItem } from '@nexub/patterns';Examples
Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| titlerequired | string | — | Notification title. |
| description | string | — | Supporting text. |
| timestamp | string | — | Relative time string. |
| read | boolean | false | Unread items get a tinted background and an "Unread" dot. |
| icon | React.ReactNode | — | Icon or avatar before the text. |
| href | string | — | 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. |
On iOS & Android: NotificationsInbox
@nexub/react-native/patternsAlpha
import { NotificationsInbox } from '@nexub/react-native/patterns';
<NotificationsInbox notifications={items} onPress={open} onMarkAllRead={markAll} />Web vs mobile
Same tokens and prop names. Where the platforms differ:
| Web | iOS & Android | |
|---|---|---|
| Scope | One NotificationItem; lay out the list yourself. | The whole inbox with "Mark all read". |
Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.
On device

iPhone (iOS simulator)

Pixel (Android emulator)
Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.
NotificationsInbox props
| Prop | Type | Default | Description |
|---|---|---|---|
| notificationsrequired | NotificationEntry[] | — | — |
| onPress | (n: NotificationEntry) => void | — | — |
| onMarkAllRead | () => void | — | — |