# Checklist

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

Two thin rows that carry an audit trail: step for what was satisfied, bp for how a total was reached.

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

## A mark scheme, one step per criterion

Vue (vue-ecosphere):

```vue
<EcoChecklist :steps="[
  { label: 'Moment of inertia stated correctly · ½MR²', score: '1 / 1' },
  { label: 'Rolling condition applied · a = Rα', score: '1 / 1' },
  { label: 'Friction force derived from torque balance', met: false, score: '0 / 2' },
  { label: 'Numerical answer with units', score: '1 / 1' },
]" />
```

React (react-ecosphere):

```tsx
<EcoChecklist
  steps={[
    { label: "Moment of inertia stated correctly · ½MR²", score: "1 / 1" },
    { label: "Rolling condition applied · a = Rα", score: "1 / 1" },
    { label: "Friction force derived from torque balance", met: false, score: "0 / 2" },
    { label: "Numerical answer with units", score: "1 / 1" },
  ]}
/>
```

## A readiness check

One step per prerequisite: the same question — what did and did not pass.

Vue (vue-ecosphere):

```vue
<EcoChecklist :steps="[
  { label: 'Class teacher assigned' },
  { label: 'Home room mapped' },
  { label: 'Timetable validated' },
  { label: 'Register not yet opened', met: false },
]" />
```

React (react-ecosphere):

```tsx
<EcoChecklist
  steps={[
    { label: "Class teacher assigned" },
    { label: "Home room mapped" },
    { label: "Timetable validated" },
    { label: "Register not yet opened", met: false },
  ]}
/>
```

## Breakdown under a total

Vue (vue-ecosphere):

```vue
<EcoChecklist :parts="[
  { label: 'Section A · multiple choice', formula: '10 × 1', tag: 'Remember', value: 10 },
  { label: 'Section B · short answer', formula: '6 × 3', tag: 'Understand', value: 18 },
  { label: 'Section C · long answer', formula: '4 × 5', tag: 'Apply', value: 20 },
]" />
```

React (react-ecosphere):

```tsx
<EcoChecklist
  parts={[
    { label: "Section A · multiple choice", formula: "10 × 1", tag: "Remember", value: 10 },
    { label: "Section B · short answer", formula: "6 × 3", tag: "Understand", value: 18 },
    { label: "Section C · long answer", formula: "4 × 5", tag: "Apply", value: 20 },
  ]}
/>
```

## API

Vue (vue-ecosphere):

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `steps` | `EcoChecklistStep[]` | — | { label, met?, score? }. met: false renders step--miss with a cross: the glyph differs, not only the colour. |
| `parts` | `EcoBreakdownPart[]` | — | { label, formula?, tag?, value }: the bp rows under a total. Showing 10 × 1 beside the 10 makes the figure checkable by hand. |
| `default slot` | `—` | — | Extra rows after the generated ones. |

React (react-ecosphere):

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `steps` | `EcoChecklistStep[]` | — | { label, met?, score? }. met: false renders step--miss with a cross: the glyph differs, not only the colour. |
| `parts` | `EcoBreakdownPart[]` | — | { label, formula?, tag?, value }: the bp rows under a total. Showing 10 × 1 beside the 10 makes the figure checkable by hand. |
| `children` | `ReactNode` | — | Extra rows after the generated ones. |
