# Pricing Card (Andromeda Pro)

Pricing Card is a component of the Premium Andromeda Pro design system from AI Canvas (https://aicanvas.me). Index of every system, component and install setup: https://aicanvas.me/llms.txt

Shows one plan with its price, what it includes and the button to choose it, lined up with the plans beside it.

- Design system: [Andromeda Pro](https://aicanvas.me/design-systems/andromeda-pro.md)
- License: Premium (proprietary)
- Install slug: `andromeda-pro-pricing-card`
- Page: https://aicanvas.me/design-systems/andromeda-pro/pricing-card

## Install

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

Requires Premium. Without a Premium token the command writes a placeholder (a `PremiumLocked` notice) instead of the component.

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

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

## Use it

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

```tsx
import { PricingCard } from '@/components/aicanvas/andromeda-pro/components/PricingCard'
```

## Example

```tsx
import { PricingCard, PricingGrid } from '@/components/aicanvas/andromeda-pro/components/PricingCard'

<PricingGrid columns={2}>
  <PricingCard
    name="Starter"
    price={0}
    period="per month"
    features={['Three invoices', 'Email support']}
    cta="Choose Starter"
  />
  <PricingCard name="Team" price={29} period="per month" features={['Unlimited invoices', 'Team approvals']} cta="Choose Team" featured />
</PricingGrid>
```

## Parts

Pricing Card is built from `PricingCard` and `PricingGrid`. Each part has its own props table below.

## Props

### PricingCard

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `name` | `React.ReactNode` |  | The plan's name, rendered as an h3 that names the card. |
| `description?` | `React.ReactNode` |  | One line on who the plan is for. |
| `price` | `number\|string` |  | The figure. A number is grouped for reading (1,000); a string is shown as given. |
| `currency?` | `string` | `'$'` | The small glyph before the figure. Pass '' for a word price such as "Custom". |
| `period?` | `string` |  | The note under the price: "per month", or what makes a free plan free. |
| `features?` | `string[]` | `[]` | What the plan includes, one check mark each. |
| `cta?` | `string` |  | The action's label; the card renders the Button in the right lane for its state and theme. |
| `onCta?` | `() => void` |  | Called when the `cta` Button is pressed. |
| `action?` | `React.ReactNode \| ((variant: 'default'\|'outline') => React.ReactNode)` |  | Replaces the `cta` Button. A function is called with the lane to use, once per theme on a featured card, so a link Button (asChild) keeps the theme rule. |
| `markers?` | `boolean` | `true` | Corner markers on the card; ignored when featured. |
| `featured?` | `boolean` | `false` | The recommended plan: solid fill, its own ink, no corner markers, leads when stacked. |
| `featuredLabel?` | `string` | `'Recommended'` | What a screen reader hears beside the name of the featured plan; the fill is the visible badge. |

### PricingGrid

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `columns?` | `number` |  | Plans per row on desktop; defaults to the number of cards. |
| `children` | `React.ReactNode` |  | PricingCards. |

## Remix prompt

Only when the user wants Pricing Card rebuilt from scratch instead of installed: the public part of its remix prompt is in the Remix panel at https://aicanvas.me/design-systems/andromeda-pro/pricing-card.

## More Andromeda Pro components

- [Progress Bar](https://aicanvas.me/design-systems/andromeda-pro/progress-bar.md)
- [Prompt Input](https://aicanvas.me/design-systems/andromeda-pro/prompt-input.md)
- [Radio](https://aicanvas.me/design-systems/andromeda-pro/radio.md)
- [Search Field](https://aicanvas.me/design-systems/andromeda-pro/search-field.md)
- [Section Heading](https://aicanvas.me/design-systems/andromeda-pro/section-heading.md)
