0.6.1-alpha.2 • Published 2 years ago

@react-to-styled/table v0.6.1-alpha.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

License: MIT GitHub contributors npm npm First good issue Package size

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

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

Dependencies

All our components depend on these dependencies

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

Usage

Here is a quick example to get you started:

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 for more examples

0.6.1-alpha.1

2 years ago

0.6.1-alpha.2

2 years ago

0.6.0

2 years ago

0.6.0-alpha.5

2 years ago

0.6.0-alpha.4

2 years ago

0.6.0-alpha.3

2 years ago

0.6.0-alpha.2

2 years ago

0.6.0-alpha.1

2 years ago

0.6.0-alpha.0

2 years ago

0.5.9-alpha.3

2 years ago

0.5.9-alpha.2

2 years ago

0.5.9-alpha.1

2 years ago

0.5.9-alpha.0

2 years ago

0.5.8-alpha.1

2 years ago

0.5.7

2 years ago

0.5.0

2 years ago

0.4.3

2 years ago

0.4.1

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago