# Source row

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

A document the system has ingested: a spine, the title, its extent, and whether it is indexed yet.

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

## The shelf a question bank draws on

A stack of spines reads as a shelf: how much a generated paper is actually drawing on. For a general file row, use ListRow.

Vue (vue-ecosphere):

```vue
<EcoSourceRow title="NCERT Mathematics 9" extent="412 pages · chapters 1–12" :status="{ label: 'Indexed', tone: 'success' }" />
<EcoSourceRow title="RD Sharma Mathematics 9" extent="688 pages · chapters 1–25" :status="{ label: 'Indexed', tone: 'success' }" />
<EcoSourceRow title="School question bank 2024–26" extent="1,140 questions" :status="{ label: 'Indexing', tone: 'accent' }" />
<EcoSourceRow title="Board paper archive" :status="{ label: 'Not uploaded', tone: 'warning' }" />
```

React (react-ecosphere):

```tsx
<EcoSourceRow title="NCERT Mathematics 9" extent="412 pages · chapters 1–12" status={{ label: "Indexed", tone: "success" }} />
<EcoSourceRow title="RD Sharma Mathematics 9" extent="688 pages · chapters 1–25" status={{ label: "Indexed", tone: "success" }} />
<EcoSourceRow title="School question bank 2024–26" extent="1,140 questions" status={{ label: "Indexing", tone: "accent" }} />
<EcoSourceRow title="Board paper archive" status={{ label: "Not uploaded", tone: "warning" }} />
```

## API

Vue (vue-ecosphere):

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `title` | `string` | — | The source’s name. |
| `extent` | `string` | "—" | Pages, chapters, question count — compared down the column. |
| `status` | `EcoDataBadge` | — | Indexed, indexing or not uploaded. A source that is not indexed cannot contribute. Or the #badge slot. |
| `coverColor / coverImage` | `string` | — | Bind a colour or an image to the 30×38 spine. Without either it is a ph placeholder. |

React (react-ecosphere):

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `title` | `string` | — | The source’s name. |
| `extent` | `string` | "—" | Pages, chapters, question count — compared down the column. |
| `status` | `EcoDataBadge` | — | Indexed, indexing or not uploaded. A source that is not indexed cannot contribute. Or the badge prop (ReactNode). |
| `coverColor / coverImage` | `string` | — | Bind a colour or an image to the 30×38 spine. Without either it is a ph placeholder. |
