Skip to content

MarcoGargano/responsive-table-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

69 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Fun with table πŸ“

Flexible & responsive table for React

A super user-friendly experience, start to use your table also on mobile!

lan lan lan lan

πŸ–₯️ On desktop as a classic table πŸ“± On mobile as collapsable rows


Links


πŸ•ΉοΈ Demo


πŸ› οΈ How to

πŸ”§ Installation

Install by NPM:

npm i responsive-table-react

Here you can find the package on NPM: responsive-table-react.


πŸ”¬ Instruction

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 example

const columns = [
    {
      "field": "name",
      "label": "Name"
    },
    {
      "field": "surname",
      "label": "Surname"
    }
  ]

  const data = [
    {
      "name": "Mark",
      "surname": "Garsin"
    },
    {
      "name": "Gabriel",
      "surname": "Betappi"
    },
    {
      "name": "Gustav",
      "surname": "Mahler",
    }
  ]

  return (
    <ResponsiveTable columns={columns} data={data} />
  )

Props

Set the designOptions

  • bordered?: boolean
    Add the border

  • dark?: boolean
    Add the dark mode

  • color?: string
    Set the master color


😊 Collaborators

Funny time with:


πŸ• Give us a pizza

If you like this component and you want to support us... PIZZAAAπŸ˜‹πŸ˜‹πŸ˜‹

About

Super flexible & responsive table, CSS only. πŸ–₯️ On desktop as a classic table πŸ“± On mobile as collapsable rows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •