TidalUI

Notification inbox preview

A controlled in-flow inbox for persistent updates, unread filtering and consumer-owned actions.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/notification-inbox

Import components/ui/tidal.css, components/ui/notification-inbox.css. Wrap installed components in tidal-scope.

Preview

Notification inbox component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/notification-inbox.css";
import{TidalNotificationInbox}from"./components/ui/notification-inbox";
export default()=><div className="tidal-scope"><TidalNotificationInbox items={[{id:"example",title:"Demo",timestamp:"value",read:false}]} onMarkAllRead={() => {}} onReadChange={() => {}}/></div>;

API and props

TidalNotificationInbox.items (required)
ReadonlyArray<TidalNotificationInboxItem>

Required items value accepted by this exported component.

TidalNotificationInbox.onMarkAllRead (required)
(ids: string[]) => void

Callback invoked when the mark all read interaction is proposed.

TidalNotificationInbox.onReadChange (required)
(id: string, read: boolean) => void

Callback invoked when the read change interaction is proposed.

TidalNotificationInbox.allLabel
string | undefined

Optional all label value accepted by this exported component.

TidalNotificationInbox.defaultView
TidalNotificationInboxView | undefined

Optional default view value accepted by this exported component.

TidalNotificationInbox.description
string | undefined

Optional description value accepted by this exported component.

TidalNotificationInbox.emptyDescription
string | undefined

Optional empty description value accepted by this exported component.

TidalNotificationInbox.emptyTitle
string | undefined

Optional empty title value accepted by this exported component.

TidalNotificationInbox.markAllButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "children"> | undefined

Optional mark all button props value accepted by this exported component.

TidalNotificationInbox.markAllReadLabel
string | undefined

Optional mark all read label value accepted by this exported component.

TidalNotificationInbox.onAction
((itemId: string, actionId: string) => void) | undefined

Callback invoked when the action interaction is proposed.

TidalNotificationInbox.onViewChange
((view: TidalNotificationInboxView) => void) | undefined

Callback invoked when the view change interaction is proposed.

TidalNotificationInbox.title
string | undefined

Optional title value accepted by this exported component.

TidalNotificationInbox.unreadLabel
string | undefined

Optional unread label value accepted by this exported component.

TidalNotificationInbox.view
TidalNotificationInboxView | undefined

Optional view value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas