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/spinnerNote 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:
| Prop | Type | Default | Required |
|---|---|---|---|
| size | "small" | "large" | - | - |
| color | string | ColorTokens | - | - |
Last updated on