import { GlobalProps } from '../../shared/global'; import { ToneKeyword } from '../../shared/theming'; export interface ProgressProps extends GlobalProps { /** * A label that describes the purpose of the progress. When set, * it will be announced to users using assistive technologies and will * provide them with more context. * * Use it to provide context of what is progressing. */ accessibilityLabel?: string; /** * Sets the tone of the Progress, based on the intention of the information being conveyed. * * @default 'auto' */ tone?: ToneKeyword; /** * This attribute specifies how much of the task has been completed. * * It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. * If there is no value attribute, the progress bar is indeterminate; * this indicates that an activity is ongoing with no indication of how long it is expected to take. * * Surfaces should apply styling to cover that indeterminate state. * * In a HTML host, you can customize the progress animation via the :indeterminate pseudo-class. * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#value * @see https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate#progress_bar */ value?: number; /** * This attribute describes how much work the task indicated by the progress element requires. * * The `max` attribute, if present, must have a value greater than 0 and be a valid floating point number. * * @default 1 * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#max */ max?: number; }