shadcn.io is not affiliated with official shadcn/ui
Status Chip Subscribe Navbar Block for React
A status-page bar with a chip that reads the state of five components and opens their list, and a Get updates popover whose Email, Feed and Webhook switch changes the field under it.
Installation
Overview
A status chip with subscribe channels for React with Base UI, in the bar of an uptime-monitoring service called Beaconmoor. One bar between the page's rails: the wordmark, Current status, Incidents and Maintenance (from lg), a status chip and a "Get updates" button. The chip's words come from a typed list of five components, so it reads "All systems operational" when nothing is affected and counts the affected ones otherwise; it opens a popover that lists every component with its state in words and the incident's note on the affected one. "Get updates" opens a popover with an Email, Feed and Webhook switch: Email asks for an address, Feed shows a feed URL to copy, Webhook asks for an https endpoint, each with its own check, and a Shine Button for the two that need one. On a phone a sheet from the top holds the links and the same form inline. It's built from Popover, Toggle Group, Field, Input Group, Copy Button, Status, Sheet, Guides, Shine Button and Button, with your theme's tokens for every colour. For status pages that want one bar for state, history and sign-up.
FAQ
How do I change the components and the incident?
Edit COMPONENTS at the top of the file: an id, a name, a state ("operational", "degraded" or "outage") and a note shown while the component is affected. The chip's dot (the warning token only when something is affected), its words in full and short, and the popover's rows are all derived from it, so setting the one degraded component to "operational" turns the chip into "All systems operational". The components are made up for the demo.
What do the channels do?
Email and Webhook check what you typed (an address with an at sign and a dot; an https:// endpoint) and show a problem beside the field, or a line saying the channel was added. Nothing is sent or stored: the line says so, and the form starts empty each time the popover opens. Feed is read-only: the URL and a copy button that says "Feed URL copied". Replace submit with your own call. The three panes sit in one cell with the other two unseen, so the popover keeps its height on every channel.
How does it work with a keyboard and a screen reader?
The chip is a button named "Components: 1 component affected" and "Get updates" a button; both say whether their popover is open and Escape closes it and returns focus to them. State is told in words in every row ("Operational", "Degraded performance"), the icons are decoration and the warning colour only tints an icon. The channel switch is a labelled group of three buttons, the field labels are real labels, a problem is announced and linked to its field, and the result line is a polite status.
How does it work on a phone?
Below the lg breakpoint a menu button opens a sheet from the top with the links; below md, "Get updates" moves into the sheet as the same form, shown inline because a popover opened from inside a modal sheet fights its focus trap. The chip stays in the bar in a short form ("1 affected") and the wordmark shrinks to its icon on very narrow screens; nothing wraps at 320 pixels. Escape or the close button closes the sheet and focus goes back to the menu button.
Does it work right to left?
Yes. The bar mirrors and the popovers open under their buttons' end edge. Addresses, endpoints and the feed URL are always read left to right, as web addresses are, and the wordmark keeps its direction.
Wrap the block in your direction provider (the catalog's DirectionProvider) so the popovers and the sheet follow the page.
Related
- Pro
Live Request Rate Navbar
Meters and progressA developer navbar for a payments API: a requests-per-second counter, an error rate taken from four endpoints, and a table of their health.
- Pro
Services Status Live Banner
Live statusA services callout for a cloud platform: a green dot and a heading that counts "All 12 of 12 services operational" from the data, a status-page link, and a matrix of the twelve services on shared hairlines.
- Pro
API Health Live Banner
Live statusA live-health callout for an API gateway: a green status dot, an all-operational heading, a sentence with the median response time and the one slow minute, a status-page link, and a framed figure of the last 30 minutes as slim latency bars.
- Pro
Stars Button Open Source Navbar
Meters and progressA one-bar navbar for an open source embedded database: a version badge by the wordmark, Docs, Examples and Playground links, a Releases menu of the last three versions, a GitHub stars button with a typed count and a Get started Shine Button.
- Pro
Release Filter Navbar
Meters and progressA release navbar for a changelog product with category filters, unseen counts that clear when opened, a version badge and a feed link.
- Pro
SaaS Marketing Navbar
Mega menusA one-bar marketing navbar for a product roadmap tool: a wordmark, a Product menu of four areas with icons and one-line descriptions, plain links with the current page marked, Sign in and a Shine Button, and a sheet with the same links on phones.