@arnat/styled-table
v0.0.12
Published
The bootstrap table component created with styled-components
Downloads
23
Readme
ARNAT - styled-table
Modular approach to use bootstrap components for quick prototypes, as an entrypoint of the component library.
Usage
import React from 'react';
import { Table, Tr } from '@arnat/styled-table';
const MyTable = props => (
<Table>
<thead>
<tr>
<th scope="col">Color</th>
<th scope="col">Content</th>
</tr>
</thead>
<tbody>
<Tr active>
<td>Active</td>
<td>Content</td>
</Tr>
<Tr primary>
<td>Primary</td>
<td>Content</td>
</Tr>
<Tr secondary>
<td>Secondary</td>
<td>Content</td>
</Tr>
<Tr success>
<td>Success</td>
<td>Content</td>
</Tr>
<Tr danger>
<td>Danger</td>
<td>Content</td>
</Tr>
<Tr warning>
<td>Warning</td>
<td>Content</td>
</Tr>
<Tr info>
<td>Info</td>
<td>Content</td>
</Tr>
<Tr light>
<td>Light</td>
<td>Content</td>
</Tr>
<Tr dark>
<td>Dark</td>
<td>Content</td>
</Tr>
</tbody>
</Table>
);
Properties
Properties which can be added to the component to change the visual appearance.
tableDark
only on Table Type: booleantheadDark
only on Table Type: booleantheadLight
only on Table Type: booleanstriped
only on Table Type: booleanbordered
only on Table Type: booleansm
only on Table Type: booleanresponsive
only on Table Type: booleanresponsiveSm
only on Table Type: booleanresponsiveMd
only on Table Type: booleanresponsiveLg
only on Table Type: booleanresponsiveXl
only on Table Type: booleanhover
Type: booleanprimary
only on Tr Type: booleansecondary
only on Tr Type: booleansuccess
only on Tr Type: booleaninfo
only on Tr Type: booleandanger
only on Tr Type: booleanwarning
only on Tr Type: booleanlight
only on Tr Type: booleandark
only on Tr Type: booleanactive
only on Tr Type: boolean