0.1.8 • Published 4 years ago

@h64m1/react-table-component v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

react-table-component

Usage

<Table
	data={[
		{ column1: 'test11', column2: 'test12', column3: 'test13' },
		{ column1: 'test21', column2: 'test22', column3: 'test23' },
	]}
>
	<Column name="column1" style={{ backgroundColor: 'rgb(3,169,244)' }} />
	<Column name="column3" className="text-red" />
	<Column name="column2" header="title2" id="c2" />
</Table>

Props

Table

NameTypeDescription
dataArrayData to be shown in the Table
className?stringclassName for css
children?React.Element || React.Element[]Column component

Column

NameTypeDescription
namestringspecify key of Table data element
header?stringspecify header string shown in <th>
className?stringclassName for css
id?stringunique id (th-id for th, td-id for td)
style?React.CSSPropertiesset css properties to body column

License

MIT

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago