# Alert (Andromeda Legacy)

Alert 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

Banner-style status component for inline messages. Default, accent, warning, fault, each with its own per-variant color set. Severity-aware ARIA (warning and fault announce assertively, the rest politely) and compound parts: AlertIcon, AlertContent, AlertTitle, AlertDescription.

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

## Install

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

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

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

## Example

```tsx
import { Alert, AlertContent, AlertDescription, AlertIcon, AlertTitle } from '@/components/aicanvas/andromeda/components/Alert'
import { Info } from '@/components/icons/info'

<Alert variant="accent">
  <AlertIcon><Info size="1em" /></AlertIcon>
  <AlertContent>
    <AlertTitle>Deployment complete</AlertTitle>
    <AlertDescription>The production build is now live.</AlertDescription>
  </AlertContent>
</Alert>
```

## Variants

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant?` | `'default'\|'accent'\|'warning'\|'fault'` | `'default'` | One of: default, accent, warning, fault. |
| `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

- [Avatar](https://aicanvas.me/design-systems/andromeda/avatar.md)
- [Badge](https://aicanvas.me/design-systems/andromeda/badge.md)
- [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)
