AlertTicker
A single-line banner cycling STANDING alerts. Not a toast — it never auto-dismisses.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A single-line banner cycling STANDING alerts.
Accessibility
Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.
Install and import
npx shadcn@latest add @prism/alert-ticker
import { AlertTicker } from '@/components/prism/AlertTicker';
In a no-build prototype, read it from the bundle instead: const { AlertTicker } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
alerts | TickerAlert[] | — | |
interval | number | — | Ms per alert. Ignored under prefers-reduced-motion and while hovered/focused. |
onDismiss | (alert: TickerAlert) => void | — | |
onSelect | (alert: TickerAlert) => void | — | |
isPaused | boolean | — | |
className | string | — |