Listing
The Listing component provides a reusable pattern for listing in the interface.
Listing
- This is a list label for item 1
- This is a list label for item 2
- This is a list label for item 3 with a link
-
Hey, Look I have kiddos!
- I am sub label
- I am another sub label 1
- I am another sub label 2
-
Here you go, a list in a list in a list
- I am another sub sub label 1
- I am another sub sub label 2
- I am another sub sub label 3
- I am another sub sub label 4
- I am another sub sub label 5
- The list can go on and on and on and on....
Padding
Listing with padding
- This is a list label for item 1
- This is a list label for item 2
- This is a list label for item 3 with a link
-
Hey, Look I have kiddos!
- I am sub label
- I am another sub label 1
- I am another sub label 2
-
Here you go, a list in a list in a list
- I am another sub sub label 1
- I am another sub sub label 2
- I am another sub sub label 3
- I am another sub sub label 4
- I am another sub sub label 5
- The list can go on and on and on and on....
API
| Parameter | Default | Description |
|---|---|---|
|
list
|
[] | List of arrays containing at least 'label' but can also contain 'href' and or 'icon' according to the Icon component. |
|
elementType
|
ul | The type of list, ul, ol. |
|
icon
|
true | Can be true/false or the name of the Icon. Displays an icon at the end of links |
|
padding
|
false | False or a number between 0 and 10. Sets the padding between the child elements |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-listing--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |