🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-collapsable-table

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-collapsable-table

Table which collapses according to the size

0.0.5
latest
Source
npm
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

react-collapsable-table

React collapsable table, which collapses the column which can be viewed by expanding gives better mobile experience

Usage

Here is a quick example to get you started:

import React from "react";
import { Table } from "react-collapsable-table";
const tableHeader = [{ id: "Firstname" }, { id: "Lastname" }, { id: "Email" }];
const tableBody = [
  { id: 1, Firstname: "Roronoa", Lastname: "Zoro", Email: "roronoa@gmail.com" },
  { id: 2, Firstname: "Zoro", Lastname: "Roro", Email: "lost@gmail.com" },
  { id: 3, Firstname: "Brazve", Lastname: "Usopp", Email: "usopp@gmail.com" },
  { id: 4, Firstname: "Monkey", Lastname: "D", Email: "mokney@gmail.com" },
  { id: 5, Firstname: "Zoro", Lastname: "Roro", Email: "lost@gmail.com" }
];
export default class App extends React.Component {
  render() {
    return <Table tableHeaderData={tableHeader} tableBodyData={tableBody} />;
  }
}

For live and interactive demo:

Edit Button

Keywords

react

FAQs

Package last updated on 31 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts