Progress

Displays an indicator showing the completion progress of a task.

Example Usage

With Value Text

You can display the percentage text by setting the showValue prop.

45%

Variants

Use the variant prop to convey different semantic meanings.

`} />

Sizes

`} />

Animations & Labels

Use the animation prop for continuous feedback, and configure label alongside labelPosition to provide better context.

Downloading Data... 85%
Downloading Data... 85%
`} />

API Reference

プロパティ
説明
タイプ
デフォルト

value

プログレスバーの現在の値。 number 0

max

プログレスバーの最大値。 number 100

size

プログレスバーのサイズ(sm、md、lg、xl)。 'sm' | 'md' | 'lg' | 'xl' 'md'

shape

プログレスバーの形状(rounded、pill、square)。 'rounded' | 'pill' | 'square' 'pill'

variant

セマンティックスタイルバリアント(default、success、warning、error)。 'default' | 'success' | 'warning' | 'error' 'default'

animation

アニメーションスタイル(none、snake、infinite)。 'none' | 'snake' | 'infinite' 'none'

showValue

数値のパーセンテージ値を表示するかどうか。 boolean false

label

プログレスバーと一緒に表示するテキストラベル。 string -

labelPosition

ラベルと値の位置(top、right)。 'top' | 'right' 'right'