Search the documentation

Type to search page titles, component names and descriptions.

    Feedback

    Progress

    How far along one task is.

    import { Progress } from 'faifo-design'

    Progress is a four-pixel track that communicates how far a task has come without becoming another panel.

    #When to use

    • Use it for a measured amount: uploaded, received, completed.
    • For stages of a record use StagePath; for an unknown wait use Spinner or Skeleton.

    #Examples

    Each example is a specimen of the package catalogue, rendered on the server exactly as shown in its code.

    #Progress

    A four-pixel track communicates state without becoming another panel.

    Project completion68%
    Approved92%
    At risk54%
    Overdue31%
    Show codeHide code
    import { Progress, Stack } from 'faifo-design'
    
    export const Example = () => (
      <Stack
        gap="compact"
        items={[
          <Progress label="Project completion" value={68} />,
          <Progress label="Approved" value={92} tone="positive" />,
          <Progress label="At risk" value={54} tone="warning" />,
          <Progress label="Overdue" value={31} tone="danger" />,
        ]}
      />
    )

    #API

    Generated from the package source. A property without a description has none in the source yet.

    #ProgressComponent

    PropertyDescriptionTypeDefault
    valuerequired–number–
    labelrequired–string–
    tone–ProgressTone'primary'
    showValue–booleantrue
    size–'small' | 'default' | 'large''default'

    #Types

    #ProgressTone

    type ProgressTone = 'primary' | 'positive' | 'warning' | 'danger'

    #Hooks

    The data-ui values these components render. Select them in tests and behaviour; their look belongs to the design system. See Contract.

    • progress
    • progress-label
    • progress-value
    • progress-track
    • progress-bar