Ir para o conteúdo
uiify

Progress

Native progress element for determinate or indeterminate work.

Navegadores
Chrome 123+Firefox 121+Safari 17.5+
Nível
0
Tamanho compactado
93 B
Limite de layout forçado
0 ms
Limite do axe
0
Compatível com SSR
Sim
Contrato publicado
Ambiente de teste

Experimentar

Progress

Exemplos

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

PropTipoPadrãoDescrição
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.

Teclado

TeclaAção

Acessibilidade

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.

Pontos de integração de estilos

data-uiify-progress
Esta página foi traduzida automaticamente e ainda não foi revisada.