Dark Light
System
Default LBBW Jira Confluence Source Code
Share
Playground

Spinner

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

Spinners are used to show the progress of an indeterminate operation.

Examples #

Color #

The color of the spinner can be adjusted using the --afp-spinner-indicator-color and --afp-spinner-track-color CSS variables.

Sizes #

Spinners are sized based on the current font size. To change their size, set the font-size property on the spinner itself or on a parent element as shown below.

Speed #

The speed of the spinner can be adjusted using the --afp-spinner-speed CSS variable.

CSS Parts

Learn more about CSS Parts.

Name Description Selector
base
The component's base wrapper.
::part(base)

CSS Custom Properties

Name Description Default
--afp-spinner-track-color
The color of the track.
--afp-color-surface-elevated
--afp-spinner-indicator-color
The color of the spinner's indicator.
--afp-color-brand-50
--afp-spinner-speed
The time it takes for the spinner to complete one animation cycle.
2s

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/spinner/spinner.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