|
2 | 2 |
|
3 | 3 | **Lists group items vertically.**
|
4 | 4 |
|
5 |
| -## Tiny |
| 5 | +## Sizes |
| 6 | + |
| 7 | +Lists come in 4 sizes: `tiny`, `regular`, `big` and `huge`. |
| 8 | + |
| 9 | +`tiny`, `regular` and `big` list items have specific **minimum heights** and a `8px` vertical padding. |
| 10 | +Favor those 3 sizes for lists with list items with consistent heights. |
| 11 | + |
| 12 | +`huge` list items have a `16px` vertical padding. |
| 13 | +Use this size for any other cases. |
| 14 | + |
| 15 | + |
| 16 | +### Tiny |
| 17 | +Tiny list item have a minimum height of `36px`. |
| 18 | +Use this size for dense lists with single ine items like menus made of [dropdown](../dropdown). |
6 | 19 |
|
7 | 20 | <DemoBlock demo="tiny" />
|
8 | 21 |
|
9 |
| -## Regular |
| 22 | +### Regular |
| 23 | +Regular list item have a minimum height of `52px`. |
| 24 | +Use this size for single line list items. |
10 | 25 |
|
11 | 26 | <DemoBlock demo="regular" />
|
12 | 27 |
|
13 |
| -## Big |
| 28 | +### Big |
| 29 | +Big list item have a minimum height of `72px`. |
| 30 | +Use this size for two lines list items. |
14 | 31 |
|
15 | 32 | <DemoBlock demo="big" />
|
16 | 33 |
|
17 |
| -## Huge |
| 34 | +### Huge |
| 35 | +Huge list item have a vertical padding of `16px`. |
| 36 | +Use this size for list items that have more than two lines of content. |
18 | 37 |
|
19 | 38 | <DemoBlock demo="huge" />
|
20 | 39 |
|
| 40 | +## Item padding |
| 41 | +Horizontal padding has 2 sizes: `big` and `huge`. |
| 42 | +By default there is no horizontal padding. |
| 43 | + |
| 44 | +<DemoBlock demo="paddings" /> |
| 45 | + |
| 46 | +## Clickable |
| 47 | +List items can be clickable. |
| 48 | +Clickable list items can then be disabled, highlighted or selected. |
| 49 | +Use clickable list items when users need to select one or more options in a list. |
| 50 | + |
| 51 | +<DemoBlock demo="clickable" /> |
| 52 | + |
21 | 53 | ### List properties
|
22 | 54 |
|
23 | 55 | <PropTable component="List" />
|
|
0 commit comments