Listing

The Listing component provides a reusable pattern for listing in the interface.

Listing

  1. This is a list label for item 1
  2. This is a list label for item 2
  3. This is a list label for item 3 with a link
  4. 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

  1. This is a list label for item 1
  2. This is a list label for item 2
  3. This is a list label for item 3 with a link
  4. 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 of arrays containing at least 'label' but can also contain 'href' and or 'icon' according to the Icon component.
ul The type of list, ul, ol.
true Can be true/false or the name of the Icon. Displays an icon at the end of links
false False or a number between 0 and 10. Sets the padding between the child elements

CSS API

Variable Default Type Values Description
var(--space) range - Base spacing unit. Used for padding and margin inside components.