Skip to content
Website Sections

DashboardHero

A headline over a working dashboard. The screen tips up from a tilt, numbers count up, the chart draws itself, and it leans toward the pointer.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
titlestring—The headline.
statsDashboardHeroStat[]—Tiles along the top. Each has label and value, plus optional prefix, suffix and note.
seriesnumber[]—The line chart, oldest first. Two values or more.
seriesLabelstring"Trend"Names the chart, for screen readers too.
bars{ label, value }[]—The bar chart. Leave out for a wider line chart.
appNamestring"Overview"Name in the window bar.
eyebrowstring—Small line above the title.
subtitlestring—Line under the title.
childrenReactNode—Buttons or links under the text.
colorstring"#a78bfa"Chart colour.
tilestring"#15122a"Colour of the dashboard panel.
headingAsElementType"h1"Heading tag. Use h2 if the page already has an h1.
classNamestring"bg-[#0b0a14] text-white"Set the background and text colour here.