shadcn.io is not affiliated with official shadcn/ui
Full-Bleed Inverted Banner Block for React
A maintenance notice for a hosting provider: a stronger tinted strip with a centred line in full foreground weight, a status dot and a link to the status page.
Installation
Overview
A full-bleed notice banner for React with Base UI. "Inverted" here doesn't mean a black bar: the banner keeps the theme and gets its emphasis from structure. A stronger tint of the theme's muted colour runs across the whole width of the page, and on it one centred line says something planned is coming (Quarrylab's migration, the API read-only for about 30 minutes) in full foreground weight instead of the muted tone, behind a small warning dot with a soft halo, and ends with an underlined link to the status page whose arrow turns around in right-to-left layouts. The dot is the Status component in the warning token, the only colour on the block. The strip is 44 pixels tall on a desktop and two lines at most on a phone, on the page's drafting lines: the rails and a top rule with plus marks. Built from Guides and Status. For maintenance windows, planned downtime and operational notices that need to be seen without an alarm.
FAQ
Why isn't it a dark bar?
A bar that is dark on a light page and light on a dark one breaks the theme and competes with the hero's button. Here the tint is one step stronger than the other bands (bg-muted instead of bg-muted/50), the text is foreground instead of muted, and a dot leads the line. It reads as inverted emphasis and works in every theme with no dark scope.
How do I change the notice?
Edit NOTICE at the top of the file: the sentence (text), the link's words (link) and its destination (href). Keep the sentence to about 55 characters so the line holds on one row on a desktop and wraps to two lines at most on a 320-pixel phone. It carries no date, so it won't go stale: write the time in the status page, or put a relative phrase in the sentence.
Can I change the dot's colour for an incident?
Yes: the dot is Status with variant="warning" and a matching halo, ring-warning/25. Use destructive for an outage or info for a heads-up and change the halo to match. The dot is decoration (it is hidden from screen readers), so the sentence itself should say what kind of notice it is, as "Planned migration" does here.
Related
- Pro
Top Bar Banner
Top barsA slim announcement strip for a writing app's release: one centred line with the version, the news and an underlined link, and a ghost button that folds the strip away.
- Pro
Maintenance Alert Banner
AlertsA maintenance callout for a managed database service: a warning heading and two sentences over a second band that draws the day as 24 hour cells, with the two hours inside the window filled.
- Pro
Full-Bleed Border Accent Banner
Top barsA platform-update band for a code review tool: a tinted strip whose start edge carries a 2 px bar, with a Platform update chip, one sentence and a link to the release notes.
- 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
Info Alert Banner
AlertsAn in-page info callout for an invoicing app: a card in card with an info icon, a heading, two sentences about a change coming next month, a Shine Button link and a dismiss button that folds the block away.
- Pro
A launch band for a design tool: a tinted strip with a centred line, a Launch week chip whose outline a light sweeps three times, and a link to the keynote.