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 | Type | Description |
|---|---|---|---|
|
list
|
[] | array | - |
|
elementType
|
ul | string | - |
|
icon
|
true | boolean | - |
|
padding
|
false | boolean | - |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-listing--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-listing--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |