# @jdl2/data-table

> The data table is a basic table used to display columnar data using a simple declarative syntax.

Latest version **2.0.0-alpha.9** (published 2018-06-29) · 0 weekly downloads

## Install

```sh
npm install @jdl2/data-table
pnpm add @jdl2/data-table
yarn add @jdl2/data-table
bun add @jdl2/data-table
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0-alpha.9 |
| Published | 2018-06-29 |
| First published | 2018-06-29 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kzantow |

## Links

- npm: https://www.npmjs.com/package/@jdl2/data-table
- npm.io page: https://npm.io/package/@jdl2/data-table

## Dependencies (4)

- [react](https://npm.io/package/react.md) *
- [react-dom](https://npm.io/package/react-dom.md) *
- [prop-types](https://npm.io/package/prop-types.md) *
- [react-addons-css-transition-group](https://npm.io/package/react-addons-css-transition-group.md) *

## Recent versions

- 2.0.0-alpha.9 (latest) — 2018-06-29
- 2.0.0-alpha.7 — 2018-06-29
- 2.0.0-alpha.6 — 2018-06-29
- 2.0.0-alpha.5 — 2018-06-29
- 2.0.0-alpha.3 — 2018-06-29
- 2.0.0-alpha.1 — 2018-06-29
- 0.0.0-alpha.2 — 2018-06-29

## README

The data table is a basic table used to display columnar data using a simple declarative syntax.

Simply define as many `DataTable.Column` children with `header` and `cell` props to get a basic table:

```jsx static
<DataTable items={users}>
    <DataTable.Column header="Username" cell={user => user.username} expand />
    <DataTable.Column header="Country" cell={user => user.country} />
</DataTable>
```

```jsx
const users = [
    {
        username: 'Joe',
        country: 'USA',
    },
    {
        username: 'Vincent',
        country: 'France',
    },
];
<DataTable items={users}>
    <DataTable.Column header="Username" cell={user => user.username} expand />
    <DataTable.Column header="Country" cell={user => user.country} />
</DataTable>;
```

---
_Source: https://npm.io/package/@jdl2/data-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
