Soft Panel Capacity Report
A feature contained entirely in one soft, rounded panel: a heading and paragraph sit beside an image tile floating a live breakdown chart, and the panel closes on a hairline row of four capacity figures. Good for a usage or plan-limits summary.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/soft-panel-capacity-report.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature10.tsx instead.
Usage
The file also exports feature10Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Feature10, feature10Demo } from "@/components/blocks/feature/feature10"; export default function Page() { return <Feature10 {...feature10Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the heading. |
| heading | ReactNode | none | Panel heading. |
| description | string | undefined | Supporting paragraph under the heading. |
| image | { src: string; alt: string } | undefined | Image tile; falls back to a placeholder via MediaSlot when omitted. |
| chart | Feature10ChartSegment[] | none | Bar segments rendered in the floating breakdown chart over the image. |
| figures | Feature10Figure[] | none | Capacity figures in the hairline row that closes the panel. |
| className | string | none | Extra classes for the outer section element. |
Types
interface Feature10ChartSegment { label: string; value: number; } interface Feature10Figure { label: string; value: string; }
Behavior notes
- The floating breakdown chart is a static CSS bar chart built from the chart prop's values; bar heights are computed at render time relative to the largest segment, but nothing updates after render, it is not a live feed.
- The four capacity figures at the bottom are plain stat props, not calculated from the chart segments above them.
- There is no interaction anywhere in this block; it is entirely presentational.
More Feature Blocks
View all →Full-Bleed Workspace Band
Two-column header above a full-bleed image band with a live view switcher, closing on three numbered captions.
Center-Line Journey Timeline
Vertical hairline timeline alternating stages either side, dropping a phone frame on one step.
Figure-Led Evidence Rows
Tall image with a floating before-and-after card, leading into oversized-figure evidence rows.
Staircase Asset Trio
Three image tiles stepping down the page in a staircase, each floating a different live asset.
Sticky Reference List
Sticky heading column beside three labelled groups of checked capabilities, closing on a footnote.
Day Timeline Rows
Hairline rows walking through one working day, stamped with time and a live approval card inline.