# Spinner (Andromeda Legacy)

Spinner is a component of the free, MIT-licensed Andromeda Legacy design system from AI Canvas (https://aicanvas.me). Index of every system, component and install setup: https://aicanvas.me/llms.txt

A 3x3 pixel grid with a snake-game trail cycling via a single CSS keyframe, running on the compositor. 4 color variants and 3 sizes.

- Design system: [Andromeda Legacy](https://aicanvas.me/design-systems/andromeda.md)
- License: MIT
- Install slug: `andromeda-spinner`
- Page: https://aicanvas.me/design-systems/andromeda/spinner

## Install

```bash
npx shadcn@latest add @aicanvas/andromeda-spinner
```

Needs a free AI Canvas account; signed out, the command writes a placeholder (an `AccountRequired` notice) instead.

Every Andromeda Legacy component at once: `npx shadcn@latest add @aicanvas/andromeda`.

Token setup: the Install section of https://aicanvas.me/llms.txt.

## Use it

It installs to `components/aicanvas/andromeda/components/Spinner.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import { Spinner } from '@/components/aicanvas/andromeda/components/Spinner'
```

## Example

```tsx
import { Spinner } from '@/components/aicanvas/andromeda/components/Spinner'

<Spinner size="md" variant="accent" label="Deploying" />
```

## Variants

- `variant`: default, accent, warning or fault (default 'default')
- `size`: sm, md or lg (default 'md')

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant?` | `'default'\|'accent'\|'warning'\|'fault'` | `'default'` | One of: default, accent, warning, fault. |
| `size?` | `'sm'\|'md'\|'lg'` | `'md'` | One of: sm, md, lg. |
| `label?` | `string` | `'Loading'` | Accessible label. |
| `className?` | `string` |  | Additional CSS classes applied to the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles applied to the root element. |

## More Andromeda Legacy components

- [Stat Tile](https://aicanvas.me/design-systems/andromeda/stat-tile.md)
- [Tag](https://aicanvas.me/design-systems/andromeda/tag.md)
- [Textarea](https://aicanvas.me/design-systems/andromeda/textarea.md)
- [Toggle](https://aicanvas.me/design-systems/andromeda/toggle.md)
- [Table](https://aicanvas.me/design-systems/andromeda/table.md)
