Bridge offers three table "types" which will style the table differently.
For information on Table style and usage guidelines, check out Table Design Guidelines.
The primary table will go here if we get to it.
Name | Favorite Color | Favorite Number |
---|
Sharkira | Pink | 3 |
Gillfunkel | Purple | 72 |
Swim shady | Yellow | 10000 |
<Table>
<Table.Head>
<Table.Row>
<Table.Cell>Name</Table.Cell>
<Table.Cell>Favorite Color</Table.Cell>
<Table.Cell>Favorite Number</Table.Cell>
</Table.Row>
</Table.Head>
<Table.Body>
<Table.Row>
<Table.Cell>Sharkira</Table.Cell>
<Table.Cell>Pink</Table.Cell>
<Table.Cell>3</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Gillfunkel</Table.Cell>
<Table.Cell>Purple</Table.Cell>
<Table.Cell>72</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Swim shady</Table.Cell>
<Table.Cell>Yellow</Table.Cell>
<Table.Cell>10000</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
You can change the type of the table with the prop type
. For borderless, its type="borderless"
. The default table is type="primary"
Name | Favorite Color | Favorite Number |
---|
Sharkira | Pink | 3 |
Gillfunkel | Purple | 72 |
Swim shady | Yellow | 10000 |
<Table type="borderless">
<Table.Head>
<Table.Row>
<Table.Cell>Name</Table.Cell>
<Table.Cell>Favorite Color</Table.Cell>
<Table.Cell>Favorite Number</Table.Cell>
</Table.Row>
</Table.Head>
<Table.Body>
<Table.Row>
<Table.Cell>Sharkira</Table.Cell>
<Table.Cell>Pink</Table.Cell>
<Table.Cell>3</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Gillfunkel</Table.Cell>
<Table.Cell>Purple</Table.Cell>
<Table.Cell>72</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Swim shady</Table.Cell>
<Table.Cell>Yellow</Table.Cell>
<Table.Cell>10000</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
Do you think Zebras neigh like horses, or make completely different sounds?
Name | Favorite Color | Favorite Number |
---|
Sharkira | Pink | 3 |
Gillfunkel | Purple | 72 |
Swim shady | Yellow | 10000 |
<Table type="zebra">
<Table.Head>
<Table.Row>
<Table.Cell>Name</Table.Cell>
<Table.Cell>Favorite Color</Table.Cell>
<Table.Cell>Favorite Number</Table.Cell>
</Table.Row>
</Table.Head>
<Table.Body>
<Table.Row>
<Table.Cell>Sharkira</Table.Cell>
<Table.Cell>Pink</Table.Cell>
<Table.Cell>3</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Gillfunkel</Table.Cell>
<Table.Cell>Purple</Table.Cell>
<Table.Cell>72</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Swim shady</Table.Cell>
<Table.Cell>Yellow</Table.Cell>
<Table.Cell>10000</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
Table
includes COMMON
and TYPOGRAPHY
common props. Read Common Props for details and API. These common props will override component props such as the color.
Prop name | Type | Default | Description |
---|
type | String | 'primary' | variants of tables (primary , borderless , zebra ) |
theme | Object | Bridge Theme | use to override default bridge theme |