@arnat/styled-table
v0.0.12
Published
The bootstrap table component created with styled-components
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.
tableDarkonly on Table Type: booleantheadDarkonly on Table Type: booleantheadLightonly on Table Type: booleanstripedonly on Table Type: booleanborderedonly on Table Type: booleansmonly on Table Type: booleanresponsiveonly on Table Type: booleanresponsiveSmonly on Table Type: booleanresponsiveMdonly on Table Type: booleanresponsiveLgonly on Table Type: booleanresponsiveXlonly on Table Type: booleanhoverType: booleanprimaryonly on Tr Type: booleansecondaryonly on Tr Type: booleansuccessonly on Tr Type: booleaninfoonly on Tr Type: booleandangeronly on Tr Type: booleanwarningonly on Tr Type: booleanlightonly on Tr Type: booleandarkonly on Tr Type: booleanactiveonly on Tr Type: boolean
