Failover diagram
A diagram of a primary and standby path, showing traffic switch on failure.
- Clients to Load balancer, active
- Load balancer to us-east, active
- Load balancer to eu-west
- us-east to Database, active
- eu-west to Database
Traffic flows to the primary. The replica follows it.
When to use
- Describing how a system stays up.
- Demonstrating status during an incident.
When not to use
- You need live monitoring; use a status view.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/failover-diagram
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
FailoverDiagram
3 props
PropTypeDefault
phase *FailoverPhase—
regionsreadonly [string, string]["us-east", "eu-west"]
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/failover-diagram.mdThe index of every part is at /llms.txt.