Data Table

The Data Table component is used to show data.

1. Import

KUMUI exports 2 DataTable-related components:

import { DataTable, DataTableColumnHeader } from "@rohitgadekar/kimui";

2. Usage


John Doejohn@example.comAdmin
Jane Smithjane@example.comUser
Alice Brownalice@example.comEditor
Bob Greenbob@example.comAdmin
Chris Whitechris@example.comUser
Diana Bluediana@example.comEditor
Eve Blackeve@example.comUser
Frank Yellowfrank@example.comAdmin
Grace Pinkgrace@example.comEditor
Hank Orangehank@example.comUser
0 of 20 row(s) selected.

Rows per page

Page 1 of 2

3. API

3.1 DataTable

Attribute Type Description Default
columns
Array<{ accessorKey: string, header: Function, cell: Function }>
The column definitions for the data table. -
data
Array<Object>
The data array that populates the table rows. -
searchKey
string
The key in the data to be used for searching. "email"