Component libraryNotification center
Notification center
ProA notification bell and modal center for filtering, opening and marking persistent product updates.
npx shadcn@latest add @tidal-pro/notification-centerInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/notification-center.css, components/ui/sheet-drawer.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
TidalNotificationCenter composes the accepted TidalSheet into a controlled notification-bell disclosure. Required open/onOpenChange, title, consumer-owned unique-ID notification records, controlled unique-ID filter definitions/value/change callback, read-change callback and mark-all callback. The trigger exposes an exact unread count plus native props/ref; the modal sheet provides bounded body scrolling, focus trapping, Escape/backdrop dismissal and trigger focus return. Records require accessibleLabel, title, read state, type/typeLabel, exact dateTime/timeLabel and may include description, leading media, disabled state, native article props/ref, native read-button props/ref and a native destination with href/label/attrs/ref. All/unread/type filters support counts and native buttons/refs. Caller handlers run first and prevention suppresses controlled proposals. aria-disabled true resolves to actual disabled behavior; explicit false remains enabled. Accepted synchronous read changes recover focus within the center if a filtered row disappears. Optional loading, empty, disabled, labels, heading level, mark-all attrs/ref, non-owned Sheet placement/theme/direction/dismissal props and inline TidalNotificationCenterPage are supported. Consumers own records, filtering decisions, routing, persistence and every side effect; the component performs no polling, request, storage or notification delivery.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.