Skip to content
← Inventory

Spinner

Loading spinner component. Animated circular indicator for async operations.

Usage

import { Spinner, SpinnerProps } from "@desk/ui/components/spinner";

Best practices

  • Use Spinner for small inline / action loading (inside a Button, next to text); a blocking full region is LoadingState, a layout placeholder is Skeleton.

  • A bare Spinner carries no accessible name — wrap it in a labelled live region (e.g. LoadingState) when it's the sole loading signal.

Props

Also exports

  • componentSpinner
  • typeSpinnerProps