Skip to content

Spinner

<ts-spinner> vv0.4.0

The ts-spinner component.

Open in Storybook for interactive demos.

<ts-spinner color="currentColor" label="Loading" size="md"></ts-spinner>
PropertyAttributeTypeDefaultDescription
colorcolorstring'currentColor'The color of the spinning indicator.
labellabelstring'Loading'Accessible label for screen readers.
sizesize"lg" | "md" | "sm" | "xl" | "xs"'md'The size of the spinner.

Use ::part() to style internal elements:

PartDescription
indicatorThe spinning indicator arc.
svgThe SVG element.
trackThe background track circle.
ts-spinner::part(indicator) {
/* your custom styles */
}
<ts-spinner color="currentColor" label="Loading" size="md"></ts-spinner>
import { TsSpinner } from '@tessera-ui/react';
<TsSpinner color="currentColor" label="Loading"></TsSpinner>