Hanzo GUI

Spinner

Render a loading indicator

  • Custom size "small" or "large".
  • Accepts all theme colors.
  • Accepts all YStack props.

Installation

Spinner is already installed in @hanzo/gui, or you can install it independently:

npm install @hanzogui/spinner

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.

Usage

import { Button, Spinner } from '@hanzo/gui'

export default () => <Spinner size="large" color="$green10" />

API Reference

Spinner

Spinner extends YStack, getting Gui standard props, plus:

PropTypeDefaultRequired
size"small" | "large"--
colorstring | ColorTokens--

Last updated on

On this page