0.1.8 • Published 3 years ago

@h64m1/react-table-component v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago