š„ļø On desktop as a classic table
š± On mobile as collapsable rows
š NPM
Package
š GitHub Repository
š CodePen
š GitHub Page
| N° | Name | Surname | Phone | |
|---|---|---|---|---|
| 01 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 02 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 03 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 04 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 05 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 06 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 07 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 08 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 09 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 10 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 11 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 12 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 13 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 14 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 15 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 16 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 17 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 18 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 19 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
| 20 | Marco | Garsin | mgarsin@email.com | +39 333 1234567 |
Try me:
Resize the window to check š
npm i responsive-table-react
Here you can find the package on NPM: responsive-table-react
Simple and high settable table for all devices, CSS only; create your component with a super tiny code.
Import with:
import { ResponsiveTable } from "responsive-table-react";
const columns = [
{
"id": "name",
"text": "Name"
},
{
"id": "surname",
"text": "Surname"
}
]
const data = [
{
"name": "Mark",
"surname": "Garsin"
},
{
"name": "Gabriel",
"surname": "Betappi"
},
{
"name": "Gustav",
"surname": "Mahler",
}
]
return (
<ResponsiveTable columns={columns} data={data} />
)
bordered?: boolean // es: bordered?: truedark?: boolean // es: dark?: truecolor?: string // es: color?: #CC0000Funny time with:
If you like this component and you want to support us... PIZZAAA TIME!!! ššš