AsterUIDocsv1.0.2

Docs / Component reference

MetricList

Compare a handful of labeled metrics in a ranked list. Bar length provides context alongside the number.

Metric list example

Install

sh
npx @fierst/ui@1.0.2 add metric-list

Registry dependencies: theme.

Exports from ./ui/metric-list: MetricList.

Download the registry source for metric-list 1.0.2.

API contracts

ts
export function MetricList({
  items,
  unit = '',
  class: extraClass,
}: {
  items: readonly { label: string; value: number }[];
  unit?: string;
  class?: string;
})