Staaarter

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.

By Staaarter Team
Feature
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading.
headingReactNodenonePanel heading.
descriptionstringundefinedSupporting paragraph under the heading.
image{ src: string; alt: string }undefinedImage tile; falls back to a placeholder via MediaSlot when omitted.
chartFeature10ChartSegment[]noneBar segments rendered in the floating breakdown chart over the image.
figuresFeature10Figure[]noneCapacity figures in the hairline row that closes the panel.
classNamestringnoneExtra 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.