@jdl2/data-table
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.9 • Public • Published

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:

<DataTable items={users}>
    <DataTable.Column header="Username" cell={user => user.username} expand />
    <DataTable.Column header="Country" cell={user => user.country} />
</DataTable>
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>;

Readme

Keywords

none

Package Sidebar

Install

npm i @jdl2/data-table

Weekly Downloads

2

Version

2.0.0-alpha.9

License

none

Unpacked Size

6.57 kB

Total Files

7

Last publish

Collaborators

  • kzantow