Skip to main content
Version: Next

Progress API

import { Progress } from '@editora/ui-react';

Props​

PropTypeDescription
animatedboolean
buffernumber | string
format'percent' | 'value' | 'fraction'
indeterminateboolean
labelstring
maxnumber | string
minnumber | string
mode'line' | 'circle' | 'radial'
onComplete(detail: { value: number; max: number }) => void
onValueChange(detail: { value: number; buffer: number; max: number; min: number; percent: number; bufferPercent: number; }) => void
precisionnumber
shape'round' | 'pill' | 'square'
showLabelboolean
size'xs' | 'sm' | 'md' | 'lg'
stripedboolean
tone'brand' | 'success' | 'warning' | 'danger' | 'info' | 'neutral'
valuenumber | string
variant'default' | 'solid' | 'soft' | 'line' | 'glass' | 'contrast'

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-progress>​

Progress renders the ui-progress custom element from @editora/ui-core, which can also be used without React.

Attributes: animated, aria-label, buffer, format, headless, indeterminate, label, max, min, mode, precision, shape, show-label, size, striped, tone, value, variant

Events: change, complete