MiHCM
data/@mihcm/ui·v0.21.0·stable

BarList

Compact ranked-value list with tokenized bars, optional row links, icons, value formatting, and motion-backed width animation.

Props

The full prop API for BarList. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.

PropTypeDefaultDescriptionSince
dataBarListItem[]Ranked items with name, value, optional href, icon, and colorClassName.0.12.0
valueFormatter(value: number) => ReactNodeFormats the value column.0.12.0
maxValuenumberExplicit maximum used to calculate bar widths.0.12.0
showValuesbooleantrueShow or hide the trailing value column.0.12.0
showAnimationbooleantrueAnimate bar width on render.0.12.0
barClassNamestringTokenized Tailwind classes for the filled bar.0.12.0
rowClassNamestringTokenized Tailwind classes for each row.0.12.0
classNamestringAdditional Tailwind classes on the root wrapper.0.12.0

Import

import { BarList } from '@mihcm/ui/BarList';