# @react-to-styled/table

> Table component with React and styled-components

Latest version **0.6.1-alpha.2** (published 2022-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-to-styled/table
pnpm add @react-to-styled/table
yarn add @react-to-styled/table
bun add @react-to-styled/table
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.1-alpha.2 |
| Published | 2022-05-03 |
| First published | 2022-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 112.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Aleksa Toljic |
| Maintainers | tolja |
| Keywords | react, css-in-js, styled-components, library, components, frontend, reuseable, ui, table |

## Links

- npm: https://www.npmjs.com/package/@react-to-styled/table
- Repository: https://github.com/react-to/react-to-styled
- Homepage: https://react-to.github.io/react-to-styled/?path=/story/table--page
- Issues: https://github.com/react-to/react-to-styled/issues
- npm.io page: https://npm.io/package/@react-to-styled/table

## Dependencies (2)

- [@react-to-styled/loader](https://npm.io/package/@react-to-styled/loader.md) ^0.3.1-alpha.2
- [@react-to-styled/essentials](https://npm.io/package/@react-to-styled/essentials.md) ^0.3.1-alpha.2

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.6.1-alpha.2 (latest) — 2022-05-03
- 0.6.1-alpha.1 — 2022-05-03
- 0.6.0 — 2022-02-26
- 0.6.0-alpha.5 — 2022-02-26
- 0.6.0-alpha.4 — 2022-02-26
- 0.6.0-alpha.3 — 2022-02-25
- 0.6.0-alpha.2 — 2022-02-19
- 0.6.0-alpha.1 — 2022-02-18
- 0.6.0-alpha.0 — 2022-02-18
- 0.5.9-alpha.3 — 2022-02-18
- 0.5.9-alpha.2 — 2022-02-18
- 0.5.9-alpha.1 — 2022-02-18
- 0.5.9-alpha.0 — 2022-02-18
- 0.5.8-alpha.1 — 2022-02-18
- 0.5.7 — 2022-02-18
- … 16 more at https://npm.io/package/@react-to-styled/table/versions

## README

[![License: MIT](https://img.shields.io/npm/l/@react-to-styled/table)](https://github.com/react-to/react-to-styled/blob/main/LICENSE)
[![GitHub contributors](https://img.shields.io/github/contributors/react-to/react-to-styled)](https://github.com/react-to/react-to-styled/graphs/contributors)
[![npm](https://img.shields.io/npm/v/@react-to-styled/table)](https://www.npmjs.com/package/@react-to-styled/table)
[![npm](https://img.shields.io/npm/dm/@react-to-styled/table)](https://www.npmjs.com/package/@react-to-styled/table)
[![First good issue](https://img.shields.io/github/labels/react-to/react-to-styled/good%20first%20issue?label=Contribute)](https://github.com/react-to/react-to-styled/labels/good%20first%20issue)
[![Package size](https://img.shields.io/bundlephobia/min/@react-to-styled/table/latest)](https://www.npmjs.com/package/@react-to-styled/table)

# React to styled table

Simple table easy to use, with minimal styling.

## Download

Our table components are available at npm, if you have an existing application run the following command to download it to your project.

```
npm install @react-to-styled/table
```

or

```
yarn add @react-to-styled/table
```

## Import

```jsx
import { Table, Paginator } from '@react-to-styled/table'
```

## Dependencies

All our components depend on these dependencies

```json
{
  "peerDependencies": {
    "react": ">=16.8.0",
    "react-dom": ">=16.8.0",
    "styled-components": ">=5"
  }
}
```

## Usage

Here is a quick example to get you started:

```jsx
import React from 'react'
import ReactDOM from 'react-dom'
import { Table } from '@react-to-styled/table'

function App() {
  const columns = {
    title: {
      header: 'Title',
      Cell: ({ data: { title } }) => <span>{title}</span>,
    },
    price: {
      header: 'Price',
      Cell: ({ data: { price } }) => <span>{price}</span>,
    },
  }

  const data = [
    { title: 'One', price: 100 },
    { title: 'Two', price: 200 },
  ]

  return <Table data={data} columns={columns} />
}

ReactDOM.render(<App />, document.querySelector('#app'))
```

You can also check our [storybook](https://react-to.github.io/react-to-styled) for more examples

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