Progress

OverviewExamplesPropertiesCSS PropertiesUsageIntegration

Progress component is used to display a circular pie-chart style progress indicator. You can customize the size and color of the progress indicator with the provided properties.

Properties

PropertyAttribute Description TypeDefault
sizesizeThe size of the progress indicator.'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl''m'
colorcolorThe color of the progress indicator. Can accept any valid CSS color value, including custom properties. Takes precedence over the `--n-progress-color` CSS custom property.string | undefined
labellabelAn accessible label for the progress indicator. If no label is supplied, the component is hidden from assistive technology.string | undefined
progressprogressThe progress percentage value.number0

CSS Properties

CSS Custom Properties provide more fine grain control over component presentation. We advise utilizing existing properties on the component before using these.

PropertyDescriptionDefault
--n-progress-colorControls the color of the progress indicator.var(--n-color-accent)

Usage

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do

  • Use to show the completion status of a task with a circular indicator.
  • Use when you can determine the percentage of the completed task at any time.
  • Use the label property to provide an accessible label for the progress indicator.
  • Use for compact spaces where a circular indicator is more appropriate than a linear progress bar.

Don't

  • Don't use for indeterminate loading states, see Spinner instead.
  • Don't use when a linear representation of progress is more appropriate, see Progress Bar instead.

Integration

For integration guidelines, please see Web Components documentation .

Was this page helpful?

Yes No

We use this feedback to improve our documentation.