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
| Свойство | Тип | По умолчанию | Описание |
|---|---|---|---|
value | number | — | Current progress value; omit it for indeterminate progress. |
max | number | 1 | Maximum 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. |
className | string | — | Class applied to the native progress element. |
style | CSSProperties | — | Native progress element styles. |
ref | Ref<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