No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

Bar List

NameDescriptionDefaultControl
data
BarItemProps[]
[]
data : [
    0 : {...} 3 keys
    1 : {...} 3 keys
    2 : {...} 3 keys
    3 : {...} 3 keys
    4 : {...} 3 keys
]
valueFormatter
(value: number) => string
--
onValueChange
(item: BarItemProps) => void
--
sortOrder
Sort order for the data
union
'none'
showAnimation
Whether to show animation when the component mounts
boolean
false
size
Size of the bar list items
-
variant
Color variant of the bars
-
hideValue
Whether to hide the value labels
-
hideTooltip
Whether to hide tooltips
-
hideArrow
Whether to hide tooltip arrows
-
interactive
Whether the bars are interactive (clickable)
-

Stories

Default

With Subtitles

With Tooltips

Custom Colors

Formatted Values

With Value Formatter

Small

Large

Hidden Values

Success Variant

Warning Variant

Destructive Variant

Info Variant

Interactive

With Value Change

Sorted Ascending

Sorted Descending

With Animation

Dark Mode

All Variants

All Sizes