shadcn.io is not affiliated with official shadcn/ui
Region Status Footer Block for React
A split footer for a webhook-relay API: a subscribe-to-updates popover at the start, a framed figure of three regions with latency and thirty-day bars at the end.
Installation
Overview
A status footer for React with Base UI that shows how the service has behaved. The start half holds the wordmark, one sentence, a "Subscribe to updates" popover (Email, RSS and Webhook rows) and the nav labelled Footer. The end half, behind a split divider that runs from the spine's top rule to the end of the page, is a framed figure of three regions. Each region is a status dot, its name and city, the median latency, a bar of thirty thin cells (one per day, oldest first) and a sentence saying the same in words. A normal day is the foreground tone; the one degraded day takes the warning token. A legal band runs under both halves. The data are typed constants at the top of the file, so nothing fetches.
FAQ
How do I feed it real data?
Edit REGIONS: each region has an id, a city, a p50 in milliseconds and thirty days. history([13]) builds the days and lists, as "days ago", which ones were degraded. Replace that with your own series (any list of { ago, state } objects, oldest first) and the bars, the "today" dot and the sentence under each bar all follow. The block fetches nothing itself.
When do the bars use colour?
Only for the exception. A normal day is the foreground tone, so a month of calm reads as one quiet bar, and a degraded day takes the Status warning token. The sentence under each bar gives the same count in words ("1 degraded day, the last 13 days ago"), and each bar is one image named with that sentence, so nobody has to read thirty cells.
How does the Subscribe popover behave?
It opens on press or Enter and holds three links: Email, RSS and Webhook, each with one line saying what you get. Escape or a press outside closes it. It does not trap focus. The Ark popover is set to non-modal, so the rest of the page stays readable while it is open.
Related
- Pro
Status Bar Footer
Slim and minimalThe slimmest live footer for a cloud host: one band with the wordmark and copyright, a status dot and sentence, the p95 response time and three links.
- Pro
Build Info Footer
Trust and complianceA footer for a docs host with a data list of the running build (version, hash, environment, region, deploy time) and a button that copies it for a bug report.
- Pro
Latest Release Footer
Content and updatesA split footer for a feature-flag service that leads with its latest release: a raised panel with version, title and three tagged changes, beside three link columns.
- Pro
Brand Split Footer
Brand-ledA brand-first split footer for a design tool: a display wordmark, a tagline and the Shine Button on one half, three link columns and the legal row on the other.
- Pro
Link Columns Footer
Link gridsThe classic link-column footer for an email API: a brand column with the wordmark, one sentence and four social links, four groups of links behind a split divider, and a legal band with the copyright and the policy links.
- Pro
Developer Hub Footer
Products and catalogsA developer-hub footer for a secrets manager: SDK tabs (TypeScript, Python, Go) with an install command, a copy button and the version, beside three link groups.