Tables
The table component is prefixed by gds-table. It is used to style standard <table> elements.
For a better experience on mobile, wrap the gds-table with a gds-table--responsive element. This allows the user to scroll through the table horizontally on their mobile device.
Demo
| # | First Name | Last Name | Username (selected) |
|---|---|---|---|
| 1 | Mark | Otto | @mdo |
| 2 | Jacob | Thornton | @fat |
| 3 | Selected Row | the Bird | |
| 4 | Disabled Row | Otto | @mdo |
Error Log
Display
gds-table--responsive
Display
gds-table--xs
gds-table--sm
gds-table--lg
gds-table--xl
Context (Color)
gds-table__header--secondary
gds-table__header--white
gds-table--inverse
gds-table__cell--positive
gds-table__cell--neutral
gds-table__cell--negative
Add Ons
gds-table--striped
gds-table--inverse-striped
gds-table__header--selected
gds-table__header--sort-desc
gds-table__row--selected
gds-table__row--disabled