Bell dock
Toasts that tuck themselves into the bell. A new notice shows as a toast; when it times out or is dismissed it shrinks along the way to the bell, which rings and counts it as unread.
Export ready
Q3 revenue.csv is ready to download.
When to use
- Apps with a notification centre, where a missed toast should still be findable.
- Background events: exports finished, comments, mentions.
When not to use
- Errors that need action; use an `Alert` or a dialog.
- Results of what the person just did; use a `Toast`.
Installation
pnpm dlx shadcn@latest add @caliper/bell-dock
Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
BellDock
2 props
Also accepts the native props of its root element and a ref.
Keyboard
- Keyboard and focus come from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Accessibility
It exposes status semantics, with aria-label, aria-hidden and aria-live kept in step with state. Changes that matter are announced through a live region.
Motion
- State changes animate with the library's shared durations and curves, so its timing matches every other part.
- Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/bell-dock.mdThe index of every part is at /llms.txt.