Spinner
@xui/spinnerA circular progress indicator.
Install
pnpm add @xui/spinner Add the barrel to a standalone component's imports:
import { XuiSpinnerImports } from '@xui/spinner';
@Component({
imports: [XuiSpinnerImports],
// …
})Examples
API
A circular progress indicator.
Variants
sizemdcolorprimaryInputs
classClassValueThe user-defined classes. Merged last so they win over the variant classes.''colorXuiSpinnerVariants['color']Intent colour of the arc.this.config.colorsizeXuiSpinnerVariants['size']Diameter, from the shared control scale, so a spinner matches the control it replaces.this.config.sizevaluenumber | null | undefinedHow far along the operation is, between 0 and 1. Out-of-range values are clamped. Leave it unset to spin indefinitely.undefined