Genesis
@beta

NotificationsPage

NotificationsPage — a person's notifications under day headings (Upcoming, Today, Yesterday, Earlier), unread ones marked, with Mark all read: the twin of genesis-ui-native's NotificationsPage, with the same `items`, `onMarkAllRead` and empty words. The day groups are genesis-core's (`groupNotificationsByDay`), so both platforms put a notification under the same heading. Presentational: it takes the items. genesis-notifications' NotificationFeed is the one that loads them from the notifications tables.

packages/ui/src/components/layout/notifications-page.tsx

Import
Subpath export: @marktiderman/genesis-ui/layout
import { NotificationsPage } from "@marktiderman/genesis-ui/layout";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

NotificationsPage

NotificationsPage — a person's notifications under day headings (Upcoming, Today, Yesterday, Earlier), unread ones marked, with Mark all read: the twin of genesis-ui-native's NotificationsPage, with the same `items`, `onMarkAllRead` and empty words. The day groups are genesis-core's (`groupNotificationsByDay`), so both platforms put a notification under the same heading. Presentational: it takes the items. genesis-notifications' NotificationFeed is the one that loads them from the notifications tables.

PropTypeDefaultDescription
items*readonly NotificationItem[]—
classNamestring—
dayLabelsPartial<Record<NotificationDayBucket, string>>{}The day headings' words, by bucket.
emptyBodystringWhen something needs your attention, it'll show up here.
emptyStateReactNode—Replaces the empty state.
emptyTitlestringNo notifications yet
isLoadingbooleanfalse
markAllReadLabelstringMark all read
nowDate—The moment the day headings count from. Default now, read in the browser.
onMarkAllRead(() => void)—Shows Mark all read in the header.
testIDstringnotifications-page
timeZonestring—The zone whose days the headings count (an IANA name). Default the browser's. Pass it with `now` to group on the server too; without both, the server renders the list without headings and the browser adds them once it has hydrated, so the server's clock and zone never decide which day a notification is on.
titleReactNodeNotificationsDefault "Notifications".
Storybook
Storybook hosts the canonical visual reference with controls for every variant.