# Badge (Andromeda Legacy)

Badge 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

6 variants for status, metric tags, and inline labels. A leading per-variant status dot blinks on a loop to carry the signal, and holds steady when reduced motion is requested.

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

## Install

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

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/Badge.tsx` (under `src/` if your project has one). With the usual `@/` alias:

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

## Example

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

<Badge variant="accent">Paid</Badge>
```

## Variants

- `variant`: default, accent, warning, fault, subtle or outline (default 'default')

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant?` | `'default'\|'accent'\|'warning'\|'fault'\|'subtle'\|'outline'` | `'default'` | One of: default, accent, warning, fault, subtle, outline. |
| `children?` | `React.ReactNode` |  | Content rendered inside the component. |
| `className?` | `string` |  | Additional CSS classes applied to the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles applied to the root element. |

## More Andromeda Legacy components

- [Button](https://aicanvas.me/design-systems/andromeda/button.md)
- [Card](https://aicanvas.me/design-systems/andromeda/card.md)
- [Checkbox](https://aicanvas.me/design-systems/andromeda/checkbox.md)
- [Corner Markers](https://aicanvas.me/design-systems/andromeda/corner-markers.md)
- [Date Range Picker](https://aicanvas.me/design-systems/andromeda/date-range-picker.md)
