sigilUI

Mini Bar List

Compare a short list of values with compact bars.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { MiniBarList } from "@sigil-ui/components";

Usage

<MiniBarList
    valueLabel="Views"
    items={[
      { label: "/docs/getting-started", value: 4230 },
      { label: "/docs/components/button", value: 3150 },
      { label: "/docs/theming", value: 2840 },
      { label: "/docs/diagrams/flow-diagram", value: 1920 },
      { label: "/docs/installation", value: 1480 },
    ]}
  />

Props

PropTypeDefaultDescription
itemsMiniBarItem[]——
valueLabelstringCountValue label (shown in header).
formatValue(v: number) => string—Format value for display.
colorstring—Color for all bars if not set per-item.

Token integration

CSS VariablePurpose
--s-text-mutedText muted
--s-primaryPrimary
--s-radius-smRadius sm
--s-textText
--s-font-monoFont mono