# Plan card

Source: https://ecosphere.dev/docs/layout/plan-card (Ecosphere 1.5). Install `vue-ecosphere` for Vue 3 or `react-ecosphere` for React 18.2+/19: same components, props, markup and stylesheet.

The price card: eyebrow, promise, price, what is included, and one action.

`import { EcoPlanCard } from "vue-ecosphere"`

## Three plans, with the recommended one picked

The ring and the filled button point at the same card, and there is exactly one of each. The action sits on one baseline across cards of unequal length.

Vue (vue-ecosphere):

```vue
<div class="cg cg--3">
  <EcoPlanCard
    eyebrow="Foundation"
    title="Practice that marks itself"
    price="₹499"
    period="/ month"
    :features="[
      'Daily practice set on the three weak strands',
      'Step-marked instantly, with the worked solution',
      'Weekly progress note to the guardian',
    ]"
  />
  <EcoPlanCard
    picked
    eyebrow="Guided"
    title="A teacher in the loop"
    price="₹1,299"
    period="/ month"
    action-label="Choose Guided"
    :features="[
      'Everything in Foundation',
      'Fortnightly review by the subject teacher',
      'Two live doubt sessions a month',
      'Report card annotated with what to do next',
    ]"
    @choose="choose('guided')"
  />
  <EcoPlanCard eyebrow="Board year" title="The last mile" price="₹2,499" period="/ month" :features="[…]" />
</div>
```

React (react-ecosphere):

```tsx
<div className="cg cg--3">
  <EcoPlanCard
    eyebrow="Foundation"
    title="Practice that marks itself"
    price="₹499"
    period="/ month"
    features={[
      "Daily practice set on the three weak strands",
      "Step-marked instantly, with the worked solution",
      "Weekly progress note to the guardian",
    ]}
  />
  <EcoPlanCard
    picked
    eyebrow="Guided"
    title="A teacher in the loop"
    price="₹1,299"
    period="/ month"
    actionLabel="Choose Guided"
    features={[
      "Everything in Foundation",
      "Fortnightly review by the subject teacher",
      "Two live doubt sessions a month",
      "Report card annotated with what to do next",
    ]}
    onChoose={() => choose("guided")}
  />
  <EcoPlanCard eyebrow="Board year" title="The last mile" price="₹2,499" period="/ month" features={[…]} />
</div>
```

## API

Vue (vue-ecosphere):

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow` | `string` | — | What the plan is filed under (“Foundation”). |
| `title` | `string` | — | Required. The promise — what is being bought. |
| `price` | `string` | — | Required. The figure, the largest on the page. |
| `period` | `string` | — | Beside the price, in muted ink (“/ month”). |
| `features` | `string[]` | — | What is included. Lead every list after the first with “Everything in <previous>”. |
| `actionLabel` | `string` | "Choose this plan" | Button label. The action slot replaces the button. |
| `picked` | `boolean` | false | The recommended plan: selection ring and the one primary button. |
| `@choose` | `(e: MouseEvent)` | — | The plan's button was pressed. |

React (react-ecosphere):

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow` | `string` | — | What the plan is filed under (“Foundation”). |
| `title` | `string` | — | Required. The promise — what is being bought. |
| `price` | `string` | — | Required. The figure, the largest on the page. |
| `period` | `string` | — | Beside the price, in muted ink (“/ month”). |
| `features` | `string[] \| ReactNode` | — | What is included: strings, or your own li elements as a node. Lead every list after the first with “Everything in <previous>”. |
| `actionLabel` | `string` | "Choose this plan" | Button label. The action prop (a ReactNode) replaces the button. |
| `picked` | `boolean` | false | The recommended plan: selection ring and the one primary button. |
| `onChoose` | `(e: MouseEvent)` | — | The plan's button was pressed. |
