Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Examples
  • Visitors by device
  • Top sources
  • Recommendations
  • Usage boundaries
  • API reference

Charts

Bar List

Ranked rows whose background bar shows each value against the largest, with the label on the bar and the value at the end.

idle

Usage

import { BarList } from "@mizen-labs/ui";

Examples

Visitors by device

Ranked rows with icons; the largest value fills the row.

Top sources

A longer ranked list without icons, in another palette tone.

Recommendations

GuidancePractice
Do

Keep labels short so they stay on the bar. Show at most about ten rows and fold the rest into "Other".

Usage boundaries

GuidanceBoundary
Scope

Use for nominal categories ranked by one measure. Rows always sort largest first; use CategoryComparison when the order is meaningful or values can be negative.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
itemsreadonly { id: string; label: string; value: number; icon?: ReactNode }[]RequiredRows ranked by value, largest first. Each bar shows its value against the largest; values must not be negative.
aria-labelstringRequiredNames the list for assistive technology.
valueLabelstringNoneA column caption above the values, such as "Visitors".
formatValue / locale / tone(value: number) => string / string / ChartSeriesToneLocale number formatting / "en-US" / palette per itemFormats values. Each item takes its palette color in input order; items past the sixth use the neutral reference tone. tone sets one hue for every bar.
PreviousArea ChartNextCalendar Heatmap
Visitors
12,480
+5.2%
Share
  • Desktop61%
  • Mobile31%
  • Tablet8%
Visitors
  • Desktop61%
  • Mobile31%
  • Tablet8%
Visits
  • google.com4,812
  • github.com2,146
  • Newsletter1,388
  • x.com902
  • reddit.com611