Skip to main content

Components

Spinner

The Spinner component is used to indicate that content or an action is loading, and that the user must wait before they can continue.

aria-label
Description

Accessibile label Defines a string value that labels the current element. @see aria-labelledby.

Type
string
NameTypeDefaultDescription
aria-labelstring-

Accessibile label Defines a string value that labels the current element. @see aria-labelledby.

Usage

Examples

Sizes

HTML

Append the class name ds-spinner to a <svg> tag to create a spinner. The <svg> should have two <circle> elements inside it to create the spinner.

Check the code snippet below for the complete HTML structure.

CSS variables and data attributes

CSS Variables
NameValue
--dsc-spinner-backgroundvar(--ds-color-surface-tinted)
--dsc-spinner-strokevar(--ds-color-border-default)
--dsc-spinner-animation-duration2s

No relevant data attributes found.

Edit this page on github.com (opens in a new tab)