Content
Table
A table sets records that share the same fields in columns so people can read across and compare, such as the timeline's entries on the web.
In kanso-ui as Table
Live in kanso-ui
Table from kanso-ui as it draws today, in Kanso’s tokens. Press, hover and tab through it: the shapes, the springs and the sizes are the library’s own.
| Time | What | Kind | Status |
|---|---|---|---|
| 08:04 | Morning check-in | Event | Done |
| 09:10 | Q4 budget review · 50 min | Session | Done |
| 12:47 | Team lunch · 46.90 | Payment | Paid |
| 13:00 | Weekly review | Task | Late · 1 h 32 |
The design
The Kanso design system's own drawing of it, in HTML and CSS with kanso-ui's tokens: the look kanso-ui's component moves to with its family's release.
When to use
- Use a table on the web when people compare the same fields across rows: time, item, detail, status.
- On phones, show the same records as ListItem rows. When a table has to appear on a phone, keep it in
k-table-wrapso it scrolls sideways instead of squeezing. - Don't use a table for layout or for a single object; use Card for one object.