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-valuemax applied
  • Customizable — Height, color, and border radius are adjustable

Basic Usage

Customization

Props

PropTypeDefaultRequiredDescription
valuenumber-YesCurrent value. Clamped between min and max
minnumber'0'NoSmallest value
maxnumber'100'NoLargest value
heightnumber'8'NoBar height in px
radiusnumber'999'NoCorner radius in px
fillColorstring'var(--background-brand-default)'NoCSS color of the filled part
trackColorstring'var(--background-default-tertiary)'NoCSS color of the empty track
isAnimatedbooleantrueNoAnimates width changes (not the first render). Off when the user asks for reduced motion
trackStyleCSSProperties-NoExtra style for the track
fillStyleCSSProperties-NoExtra style for the fill
ariaLabelstring'Progress'NoAccessible name of the progress bar

Specification

base

상태요소속성값
enabledtrackbackgroundColor$color.background.default.tertiary
enabledtrackheight8px토큰 아님 — height prop default
enabledtrackborderRadius999px토큰 아님 — radius prop default
enabledfillbackgroundColor$color.background.brand.default

Guidelines

  • value is automatically clamped to the min/max range
  • Use DonutChart for comparing ratios of multiple items; use HorizontalBar for single progress indicators