本文へ移動
uiify

Progress

Native progress element for determinate or indeterminate work.

ブラウザー
Chrome 123+Firefox 121+Safari 17.5+
ティア
0
圧縮後のサイズ
93 B
強制レイアウトの上限
0 ms
axe の上限
0
SSR 対応
はい
公開された契約
テストハーネス

プレイグラウンド

Progress

使用例

Indeterminate work

Omit value when the amount of completed work is unknown.

import { Progress } from "@gunkin/uiify";

export default function Example() {
  return (
    <>
      <label htmlFor="file-progress">Preparing files</label>
      <Progress id="file-progress" />
    </>
  );
}

API

Progress

Prop型既定値説明
valuenumber—Current progress value; omit it for indeterminate progress.
maxnumber1Maximum progress value accepted by the native element.
Accessible name*native <label> / aria-label / aria-labelledby—Provide an accessible name with aria-label, aria-labelledby, or a native label.
classNamestring—Class applied to the native progress element.
styleCSSProperties—Native progress element styles.
refRef<HTMLProgressElement>—Ref forwarded to the native progress element.

キーボード

キー操作

アクセシビリティ

Native progress element. Associate a label or accessible name; omitting value exposes indeterminate progress. Browser rendering varies, and UIify does not simulate updates or announce them.

スタイリングのフック

data-uiify-progress