# Input (Andromeda Legacy)

Input 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

Optional uppercase mono label, optional left icon, default + error states. Border transitions on focus.

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

## Install

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

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

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

## Example

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

<Input label="Invoice number" placeholder="INV-2048" />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `label?` | `string` |  | Uppercase mono label rendered above the field. |
| `icon?` | `React.ComponentType<{ size?: number, weight?: 'thin' \| 'light' \| 'regular' \| 'bold' \| 'extrabold' }>` |  | Optional left icon. |
| `error?` | `string` |  | When set, switches the field into the error state and renders the message. |
| `className?` | `string` |  | Class name forwarded to the <input> element. |
| `wrapperClassName?` | `string` |  | Class name forwarded to the outer wrapper. |

## More Andromeda Legacy components

- [Metric Chart](https://aicanvas.me/design-systems/andromeda/metric-chart.md)
- [Waveform](https://aicanvas.me/design-systems/andromeda/waveform.md)
- [Media Card](https://aicanvas.me/design-systems/andromeda/media-card.md)
- [Data Table](https://aicanvas.me/design-systems/andromeda/data-table.md)
- [Music Player](https://aicanvas.me/design-systems/andromeda/music-player.md)
