Spinner

Work in progress, with no measurable amount of it.

import { Spinner } from '@textui/core';

<Spinner label="Connecting" />

Props

| Prop | Type | Default | | | — | — | — | — | | label | string | | | | tone | 'default' \| 'primary' \| 'secondary' \| 'accent' \| 'success' \| 'warning' \| 'danger' \| 'info' \| 'muted' | | |

Plus everything on BoxProps.

Role: status.

Use it only when the duration is genuinely unknown. Anything with a numerator and a denominator should be a Progress, because a spinner tells a reader nothing except that the program has not died.

The frames come from the theme’s glyph set and degrade to ASCII where the terminal cannot draw them.

See also

  • Progress - when the size is known
  • Skeleton - when the shape of what is coming is known

Back to top

MIT licensed. Pre-1.0 - the surface is still moving.