Elements Pro launch: $79 for the first 50 with LAUNCH50 · $129 standard.

Components / Blocks / DashboardShell

DashboardShell.

FreeBlock

A responsive application shell with navigation, header, metric slots, and a content workspace.

Demo dataResponsive
Overview

Revenue

$24.1k

+12.5%

Orders

1,429

+8.1%

Customers

892

+6.3%

Your product content starts here.

Installation

pnpm dlx shadcn@latest add https://elements.micropreneur.dev/r/dashboard-shell.json

The shadcn CLI writes the source into your project. Files added:

  • components/blocks/dashboard-shell.tsxblock
  • lib/utils.tslib
Dependenciesclsxtailwind-merge

API

PropTypeDefaultDescription
brand (required)ReactNode—
children (required)ReactNode—
headerReactNode—
metricsreadonly DashboardShellMetric[][]
navItems (required)readonly DashboardShellNavItem[]—
userReactNode—

Also accepts ComponentProps<'section'>.

DashboardShellNavItem

PropTypeDefaultDescription
activeboolean—
href (required)string—
iconReactNode—
label (required)string—

DashboardShellMetric

PropTypeDefaultDescription
detailReactNode—
label (required)string—
value (required)ReactNode—

Accessibility

  • Navigation is a labelled nav landmark ("Primary").
  • The active item sets aria-current="page".