콘텐츠로 이동

Spinner

이 콘텐츠는 아직 번역되지 않았습니다.

Says that something is in progress, for work of unknown length.

The frame above shows the real web components, in the mode this site is in.

The design preview shows it next to every other web component.

  • It takes the color of the text around it.
  • With label it is announced to assistive technology. Without one it is decoration next to text that already says what is happening.
  • For work of known length, use a ProgressBar.
import { Spinner } from "@acme/ui";
<Spinner label="Loading" />

The web component’s props. The other platforms take the same options under their own naming conventions.

Prop Type Notes
size "sm" | "md" | "lg" Defaults to md.
label string What a screen reader says.
Platform File
Web (React) packages/ui/src/Spinner.tsx
React Native packages/ui-native/src/Spinner.tsx
Compose Multiplatform kotlin/ui/src/commonMain/kotlin/acme/ui/Spinner.kt