Dark Light
System
Default LBBW Jira Confluence Source Code
Share
Playground

Progress Ring

<afp-progress-ring> Since 1.0.0 stable This component uses the light DOM, so its markup and styles are part of the regular document flow.

A progress ring component to visually represent the completion of a task or process in ring format.

Examples #

Variants #

Use the variant attribute to set the progress ring's semantic variant.

Display Value #

Use the info attribute to display the progress value inside the ring.

Custom Value #

Use the default slot to set a custom value inside the progress ring.

Custom

Customization #

Use CSS custom properties to customize the size and widths of the progress ring.

Properties

Learn more about properties.

Name Description Reflects
value
value which is displayed in the progress ring
Type number
Default 0
info
shows value in progress ring.
Type boolean
Default false
label
a label that describes the progress ring for assistive devices.
Type string
variant
variant of progress ring
Type
AfpVariant
Name Description
NEUTRAL
The main call-to-action.
BRAND
Less prominent than primary.
ACCENT
Secondary highlight for emphasis.
ERROR
Used for destructive or critical actions.
INFO
Conveys general information.
SUCCESS
Indicates a successful or positive action.
WARNING
Communicates cautionary actions.
AfpVariant
Default AfpVariant.NEUTRAL

Events

Learn more about events.

Name Return Description
afp-value-changed number
Emitted when the progress ring's value changes.

Slots

Learn more about slots.

Name Description
default
Default slot used to customize the value display inside the progress ring.

Internationalization

Learn more about internationalization.

Key Description
progress-ring.aria-label
The default `aria-label` text for Progress ring

CSS Parts

Learn more about CSS Parts.

Name Description Selector
base
The component's base wrapper.
::part(base)
svg
The SVG element containing the progress ring
::part(svg)
track
The track of the progress ring
::part(track)
indicator
The indicator of the progress ring
::part(indicator)
label
The label displaying the progress value
::part(label)

CSS Custom Properties

Name Description Default
--afp-progress-ring-size
The size of the progress ring.
--afp-size-3xl
--afp-progress-ring-track-width
The size of the progress ring track.
--afp-size-3xs
--afp-progress-ring-indicator-width
The size of the progress ring indicator.
--afp-size-3xs

Importing

Using the bundle is the recommended method to include components. If you’d rather handle imports manually, you can use the code examples below.

import '@afp-design-system/core/dist/components/progress-ring/progress-ring.js';
Share
Create a link with a predefined theme that is automatically applied when the generated link is opened. Default LBBW Presentation Mode
Abort Copy Link