Components
HorizontalBar
Horizontal progress bar for displaying progress
Overview
HorizontalBar is a horizontal progress bar. role="progressbar" and ARIA attributes are applied by default.
- Animated — Fill width transitions with CSS animation
- Accessible —
aria-valuenow,aria-valuemin,aria-valuemaxapplied - Customizable — Height, color, and border radius are adjustable
Basic Usage
Customization
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
value | number | - | Yes | Current value. Clamped between min and max |
min | number | '0' | No | Smallest value |
max | number | '100' | No | Largest value |
height | number | '8' | No | Bar height in px |
radius | number | '999' | No | Corner radius in px |
fillColor | string | 'var(--background-brand-default)' | No | CSS color of the filled part |
trackColor | string | 'var(--background-default-tertiary)' | No | CSS color of the empty track |
isAnimated | boolean | true | No | Animates width changes (not the first render). Off when the user asks for reduced motion |
trackStyle | CSSProperties | - | No | Extra style for the track |
fillStyle | CSSProperties | - | No | Extra style for the fill |
ariaLabel | string | 'Progress' | No | Accessible name of the progress bar |
Specification
base
| 상태 | 요소 | 속성 | 값 |
|---|---|---|---|
| enabled | track | backgroundColor | $color.background.default.tertiary |
| enabled | track | height | 8px토큰 아님 — height prop default |
| enabled | track | borderRadius | 999px토큰 아님 — radius prop default |
| enabled | fill | backgroundColor | $color.background.brand.default |
Guidelines
valueis automatically clamped to the min/max range- Use DonutChart for comparing ratios of multiple items; use HorizontalBar for single progress indicators