Spinner

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

Basic cards can display any content with no header or footer.

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.

The width of the spinner’s track can be changed by setting the —track-width custom property.

The spinner’s colors can be changed by setting the —indicator-color and —track-color custom properties.

import '@ods/components/web.spinner';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Parts

NameDescription
baseThe component's base wrapper.

Search