Overview
Tables display sets of data across rows and columns.
Types
1) Default Table
Header Field A | Header Field B |
---|---|
Data 1A | Data 1B |
Data 2A | Data 2B |
Data 3A | Data 3B |
You only need to attach a single table
CSS class within the table tag.
2) Horizontal Table
You can use this table without the emphasis of a table header. Just add the .table-h
class
Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. |
---|---|---|---|
Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. |
Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. |
3) Vertical Header Table
You can use this table with left header header. Just add the .table-v
class.
Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. |
Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. |
Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. | Lorem ipsum dolor. |
Style
Modifier | Description |
---|---|
is-bordered | Use when you want to add borders to all the cells |
is-striped | Use when you want to add stripes to all the cells |
is-narrow | Use when you want to make the cells narrower |
is-hoverable | Use when you want to add hover effect on each row |
is-fullwidth | Use when you want to have a fullwidth table |
When to use
Tables should be used for:
- Displaying tabular information such as statistics.
- Making comparisons between information.
Tables should not be used for:
- Displaying non-tabular data (Using lists would be more appropriate).
- Laying out a page.
- Large sections within a page.
Can't find a component?
Let us know what you need and we’ll be happy to look into it