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) => ReactNode—Formats the value column.0.12.0
maxValuenumber—Explicit 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
barClassNamestring—Tokenized Tailwind classes for the filled bar.0.12.0
rowClassNamestring—Tokenized Tailwind classes for each row.0.12.0
classNamestring—Additional Tailwind classes on the root wrapper.0.12.0

Import

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