Content
List item
A list item is one row of a list that sits flat on paper, such as a payment in a statement, an entry in the timeline or a project in a web list.
In kanso-ui as ListItem
Live in kanso-ui
ListItem 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.
GHOffice supplies30 Nov · You paid 212.40+106.20
ALCoffee30 Nov · Ada paid 23.90−11.95
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 rows for many items of one kind that the person scans: payments, the timeline's entries, projects.
- Lead with an avatar when a person did it (a statement row) and with the time when time orders the list (the timeline).
- Use the compact row on the web, where a row is one line.
- For one object, use Card. To compare several fields across many records on the web, use Table.