shadcn.io is not affiliated with official shadcn/ui
Dashboard Preview Hero Block for React
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.
Installation
Overview
A centred showcase hero with the product below it, for React with Base UI. Between the page rails the top holds an announcement pill, a headline, a supporting line, a Shine Button and an outline button, and a one-line trust note. Under them, a wide browser window, with its three dots and address bar, sits in a frame of hairlines with + marks on its top corners and shows a greyscale sketch of an analytics dashboard: a sidebar, four metric tiles with their changes, a revenue chart in foreground tones and a short list of pages. The window runs on past the first screen and fades out at its foot, so the page seems to continue into it. It's a stand-in for your own screenshot, and it rises into place just after the text. It's built from Announcement, Status, Shine Button, Button, Frame, Skeleton and Guides, with CSS transitions for the entrance. For SaaS products, analytics platforms, project management tools and any web app whose interface sells it.
FAQ
How do I put a screenshot of my dashboard in the window?
Replace everything inside FramePanel with your image, and drop the panel's padding (p-0) so the screenshot fills it: an img with w-full h-auto, and alt text that says what the screenshot shows. Export it at about twice the window's widest size (2,300px across) so it stays sharp on high-density screens, and give it its width and height so the page doesn't jump while it loads. Keep the window's header: its dots and address bar frame any screenshot. The window's height and the fade at its foot belong to the box around it (lg:h-[34rem] and the mask), so they stay.
Can I keep the sketch and change what it shows?
Yes. The tiles come from METRICS (a label, a value and a change), and the chart's line from REVENUE, twelve numbers drawn into a 600 × 160 box. The sidebar and the list are Skeleton bars with their pulse turned off, sized by NAV and ROWS. The chart is plain SVG, filled and stroked in your theme's foreground colour, so the primary colour stays on the Shine Button.
Is the dashboard preview accessible for screen readers?
The window is a picture of the product, so it's hidden from screen readers and inert: nothing in it can be focused or read, and nobody tabs through a sidebar that doesn't work. Everything that matters is in the text above it. The headline is the page's one h1, the pill and both calls to action are links named by their text, and the dot in the trust line is hidden so it isn't read aloud. If you swap the sketch for a screenshot, give the img its alt text and remove aria-hidden and inert from the window.
How does the dashboard fit on a phone?
The sketch rearranges instead of shrinking, and the box around it is shorter (h-80), so the call to action stays inside the first screen. Below the md breakpoint the sidebar is hidden, and below lg the four tiles sit two by two, the chart takes the full width and the list is hidden, so the numbers stay readable on a 320px screen. The headline steps down from text-6xl to text-4xl, and the calls to action wrap onto two lines when the row runs out of room.
What moves on load, and can I turn it off?
The pill, the headline, the supporting line, the buttons and the trust line fade up one after another, then the window rises and fades in. It's all CSS transitions on the first paint, with no animation library and no script. With reduced motion turned on, everything is in place from the start.
How do I point the buttons at my sign-up and demo pages?
Start free trial is the one main action, a Shine Button: a band of light sweeps across it once when the pointer arrives or it takes focus. View live demo is an outline button. Both are links (href="#"); point them at your sign-up route and your demo.
Each renders the link it's given with render, with nativeButton={false}.
Related
- Pro
Centered Browser Frame Hero
Product windowsA centered showcase hero over a full-width browser window showing the product, a logs explorer with a request histogram and a log, held by a hairline frame and faded below the fold.
- Pro
Split Layout Browser Frame Hero
Product windowsA showcase hero with start-aligned copy, a band of three checklist cells and a browser window in a hairline frame showing a deployments list.
- Pro
Split Layout Overlapping Browser Frames Hero
Product windowsA split hero for a design tool: a headline, a Shine Button, a second action and three short feature ticks beside two overlapping browser windows that run off the edge of the column: a projects list behind an editor.
- Pro
Metric Tiles Hero
Stats and live dataA 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
Hero With Stats
Stats and live dataA 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
Split Layout Image Hero
Product windowsA reverse split hero for an AI code assistant: an editor drawn from UI runs edge to edge to the start rail, with a file tree, code, a ghost suggestion and an assistant panel; a divider and the copy sit at the end.