dajr-valentin-p14-new
v1.0.14
Published
- Display a Table component - Choose how much entries you want to display - Handle pagination - A search bar to select a specific entry (or a specific group of entries)
Downloads
22
Readme
React/TypeScript Table component
Features
- Display a Table component
- Choose how much entries you want to display
- Handle pagination
- A search bar to select a specific entry (or a specific group of entries)
How to use
Required
- Node: 18.16.0
- Typescript: ^5.2.2
- React: ^18.3.1
Install
npm install dajr-valentin-p14-new
Use it as React component
import { Table } from 'dajr-valentin-p14-new';
Inject your data in props
<Table data={data} categories={categories} />
Format for your data
data = [
{
firstName: "string",
lastName: "string",
...
},
{
firstName: "string",
lastName: "string",
...
},
{
...
}
]
...
categories = ["firstName", "lastName", ...]