finalsa-react-components
v1.0.4
Published
React components made with bulma and react.
Downloads
1
Readme
finalsa-react-components
React components made with bulma and react.
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