Skip to main content
Mantı UI logoMantı UIv0.12.1
Studio

Spinner

Spinner inherits currentColor and exposes sm, md, and lg sizes. Set label when it is not accompanied by visible loading text.

import { Spinner } from '@manti-ui/react';

export default function SpinnerBasic() {
  return (
    <>
      <Spinner size="sm" />
      <Spinner size="md" />
      <Spinner size="lg" />
    </>
  );
}

API

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Visual size.
labelstring'Loading'Accessible label announced to assistive technology.

Styling

Anatomy

PartSelectorDescription
root[data-scope="spinner"][data-part="root"]The spinning indicator; inherits currentColor.

Tokens

TokenControls
--manti-spinner-sizesize
--manti-spinner-thicknessthickness

Last updated

Built end-to-end with Manti UI components and design tokens. Manti UI is a framework-agnostic design system on Zag.js.

GitHub