Spinner

Spinner, a React Native component for iOS, Android and web: A drawn loading ring, identical on every platform.

Usage

import { Spinner } from './components/ui/spinner';
import { Stack } from './components/ui/stack';

export default function Example() {
  return (
    <Stack direction="horizontal" gap={4} align="center">
      <Spinner size="sm" />
      <Spinner />
      <Spinner size="lg" label="Loading orders" />
    </Stack>
  );
}

Props

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'
colorstring
labelstring | null'Loading'Accessible name. Pass `null` when a parent already announces the busy state.
styleStyleProp<ViewStyle>
testIDstring
nativebooleanRenders the platform's own activity indicator when `@leoanimesh/ferrule-native` is available.