Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

finalsa/finalsa-react-components

Repository files navigation

finalsa-react-components

React components made with bulma and react.

NPM JavaScript Style Guide

Install

npm install --save finalsa-react-components

Usage

import React, { Component } from 'react'

import {TableModule} from 'finalsa-react-components'
import 'finalsa-react-components/dist/index.css'

class Example extends Component {
  render() {
    const cols = [
    {
      "name" : "Name",
      "selector" : "name"
    },
    {
      "name" : "Attribute1",
      "selector" : "attr1"
    },
    {
      "name" : "Year",
      "selector" : "year"
    }
    ]
    const data = [
      {"name" : "Luis", "attr1" : "test", "year" : 2021 },
      {"name" : "Luis", "attr1" : "test", "year" : 2021 },
      {"name" : "Luis", "attr1" : "test", "year" : 2021 },
      {"name" : "Luis", "attr1" : "test", "year" : 2021 },
      {"name" : "Luis", "attr1" : "test", "year" : 2021 },
      {"name" : "Luis", "attr1" : "test", "year" : 2021 },
      {"name" : "Luis", "attr1" : "test", "year" : 2021 },
    ]
    return <TableModule 
      title="People"
      cols={cols}
      data={[{
        "name" : "Luis"
      }]}
    />
  }
}

License

MIT © finalsa

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published