# Card (Andromeda Legacy)

Card 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

Compound primitive: Card / Header / Content / Footer / Title / Description. Corner brackets do the framing by default, with a bordered toggle for a continuous 1px border and a glow variant that adds an accent tint.

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

## Install

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

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

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

## Example

```tsx
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/aicanvas/andromeda/components/Card'
import { Button } from '@/components/aicanvas/andromeda/components/Button'

<Card variant="glow">
  <CardHeader>
    <CardTitle>Production deploy</CardTitle>
  </CardHeader>
  <CardContent>
    <CardDescription>Version 2.4 is ready to release.</CardDescription>
  </CardContent>
  <CardFooter>
    <Button size="sm" variant="outline">View details</Button>
  </CardFooter>
</Card>
```

## Parts

Card is built from `Card` and `CardSection`. Each part has its own props table below.

## Variants

- `variant` on `Card`: default or glow (default 'default')

## Props

### Card

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant?` | `'default'\|'glow'` | `'default'` | One of: default, glow. |
| `bordered?` | `boolean` | `false` | Toggle a continuous 1px border. Off by default. Andromeda cards rely on corner brackets, not perimeter strokes. |
| `markers?` | `boolean` | `true` | Toggle the corner markers motif. |
| `markerProps?` | `import('./CornerMarkers').CornerMarkersProps` |  | Pass-through overrides for the inner CornerMarkers. |
| `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. |

### CardSection

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `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

- [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)
- [Drawer](https://aicanvas.me/design-systems/andromeda/drawer.md)
- [Empty State](https://aicanvas.me/design-systems/andromeda/empty-state.md)
