sigilUI

Mini Bar List

A horizontal bar ranking list for top-N analytics, page views, and leaderboards.

@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 },
  ]}
  color="var(--s-primary)"
/>

Props

PropTypeDefaultDescription
itemsMiniBarItem[]—Ranked items with label, value, optional icon and color
valueLabelstring"Count"Column header for the value column
formatValue(v: number) => string—Custom value formatter function
colorstringvar(--s-primary)Default bar background color

Token integration

CSS VariablePurpose
--s-primaryDefault bar background
--s-textItem label and value text
--s-text-mutedColumn headers and icons
--s-font-monoValue font family
--s-radius-smBar corner radius