@times-tooling/table
v6.0.1
Published
``` yarn add @times-tooling/table ```
Downloads
210
Readme
How to use
yarn add @times-tooling/table
import Table from '@times-tooling/table'
const columns = [
{
title: 'Column title',
key: 'title',
sortable: true
},
{
title: 'Column data',
key: 'data',
sortable: false
},
{
title: 'Actions',
render: data => (
<Link to={`/author/${data.title}`}>Visit</Link>
),
},
]
const data = [
{
title: 'a title',
data: 'some other text'
},
{
title: 'another title',
data: 'some other text'
},
]
<Table
loading={request.isLoading}
className={styles.customStyleClass}
columns={columns}
data={data}
defaultSortDirection="asc"
defaultSortColumn="title"
/>
Development
yarn build
yarn test