Spinner

Render a loading indicator.

Features

  • Custom size "small" or "large".

  • Accepts all theme colors.

  • Accepts all YStack props.

Usage

Note that due to the fact that Spinner is an extension of React Native ActivityIndicator , and that only accepts size small or large, we are currently limited to just these sizes.

import { Button, Spinner } from 'tamagui'
export default () => <Spinner size="large" color="$green10" />

Spinner API

Spinner extends YStack, getting Tamagui standard props, plus:

Props

  • size

    "small" | "large"

  • color

    string | ColorTokens

    Give the spinner a color.