Skip to content

List ​

List is a column of ListItems and nothing else.

When to use ​

Use it for items of one kind: documents, people, notifications. Put it where it reaches the edges of its container (a panel, a page), not in a container with padding. A switch, a checkbox or a radio is not a list item and goes in a Stack; values in columns are a Table. When the items hold different things and must line up, rows raises their least height.

Props ​

PropDefaultDescription
labelThe name of the list
rolelistgroup for a list of choices (with label)
rowsThe least item height: mark, box, thumb or two
childrenrequiredThe ListItems

Contract ​

The items touch: the list has no padding and no gap, and its outline runs from the top of the first item to the bottom of the last; the distance to its neighbours is the gap of the layout around it. rows makes every item at least as tall as one that holds a mark (--kata-height-list-item-mark), a small button (--kata-height-list-item-lg), a thumbnail (--kata-height-thumbnail-row) or two lines (--kata-height-list-item-two). With a label the list has its role and name.

Example ​

List

Released under the Apache-2.0 license.