Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Centered Uptime Status Rows Hero Block for React

A showcase centered hero for an API platform, with a live status pill, a Shine Button and a status panel of full-width bands: five services' uptime over the last 30 days.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A showcase centered hero that proves its reliability, for React with Base UI. A status pill with a gently pulsing dot says all systems are operational, then a headline, a sentence, a Shine Button and an outline button sit between solid page rails. Below, a status panel is a stack of full-width bands: a header, five services each with its current status, a bar of the last 30 days colored by how the service did that day, and its uptime, and a footer with an incident count and a link to the full status page. The header and footer draw their rules with + marks on the rails. It's built from Announcement, Status Pulse Text, Status, Guides, Shine Button and Button, with Tailwind CSS, and the copy is for Kestrel, a fictional API platform. The hero and the rows fade in once with CSS, and nothing moves for visitors who ask for reduced motion. For infrastructure companies, API platforms and cloud services, where uptime is the promise.

FAQ

How do I show my real monitoring data?

Map your status provider's daily history onto SERVICES: each service has a name, its uptime as it should read, and its incidents, one per bad day, with how many days ago it was (0 is today) and whether the service was degraded or down. Days without an incident are operational. Everything else follows from that data: each row's dot and status word (today's health), its 30-day bar, the sentence screen readers hear, the incident count in the footer and the pill above the headline. Fetch it on the server and refresh it every few minutes, so the panel is never stale.

How do I add or remove services?

Add or remove entries in SERVICES. The rows are a list divided by hairlines between the header and footer bands, so any number fits, though five to seven keep the hero short. A long service name ends in an ellipsis rather than squeezing its bar; for longer names, widen the first column in the row's grid classes (sm:grid-cols-[8rem_…], md:grid-cols-[10rem_…]).

Is the status panel accessible for screen readers?

Yes. "Service status" is an h2 over a list, and each service is one item read as its name, its 30 days in words ("degraded on 1 day in the last 30 days"), today's status and its uptime. The bars and dots are hidden from assistive technology, and color never speaks alone: each row shows its status as a word at every width. The pill is a status region, read when its text changes, and the footer link is named by where it goes.

Which colors do the bars use, and how do I change them?

A foreground tone for operational days (bg-foreground/70), so the Shine Button stays the only primary colour, and the theme's status tokens only where something went wrong: bg-warning for degraded days and bg-destructive for days down, set once in the HEALTH map with each health's word and dot. Because they're tokens, the bars follow your theme and its dark mode. Change a class in HEALTH to restyle every bar, dot and label of that health together.

How does the status panel fit on a phone?

Below the sm breakpoint each row takes two lines: the service's name with its status and uptime on the first, and its bar of 30 days across the full width under them, so every day stays wide enough to see. From sm up the name, the bar and the figures share one line in three columns. The headline wraps, balanced, at text-4xl, and the calls to action wrap when they don't fit side by side; the Shine Button ends within the first screen.

When should I use an uptime hero instead of a metrics hero?

Use it when reliability is what you sell, for an API, a hosting platform or a data service, and you can back the claim with each service's history. Use a metrics hero when the story is growth, like customers, requests or revenue, rather than how dependably each part of your product stays up.

  • Pro

    A split hero for compliance-minded buyers between solid rails: a headline, a Shine Button and certification badges beside a framed trust-center figure, over a band of four stats in shared hairline cells.

  • Pro

    Metric Tiles Hero

    Stats and live data

    A compact left-aligned hero for an edge network with a live status pill, a Shine Button and an outline button at the end of the row, and four metric tiles below, each a ruled cell with a trend.

  • Pro

    Centered Activity Feed Hero

    Stats and live data

    A split hero with a live pill, a headline and two actions beside a ruled feed of recent activity, each row with an avatar, a name, an action and how long ago.

  • Pro

    Hero With Stats

    Stats and live data

    A split hero with a headline, a Shine Button and a second action beside a rail of four key figures on shared hairlines, each with its period and a small bar trend.

  • Pro

    Dashboard Preview Hero

    Product windows

    A showcase hero with a headline, a Shine Button, an outline button and a trust line above a wide browser window in a hairline frame, a greyscale sketch of an analytics dashboard that runs on below the fold.

  • Pro

    Centered Trusted By Logo Row Hero

    Logos and social proof

    A compact centered hero built as bands: an announcement pill, a headline, two calls to action and three trust points, then a ruled label and a row of six customer wordmarks in divided cells.