List

Easily create nice looking lists, which come in different styles.

Table of contents

Usage

To apply this component, add the .uk-list class to an unordered or ordered list. The list will now display without any spacing or list-style.

    • List item 1
    • List item 2
    • List item 3
PR

Style type modifiers

Add one of the following classes to set the marker of a list item.

ClassDescription
.uk-list-discUse a filled circle as a marker.
.uk-list-circleUse a hollow circle as marker.
.uk-list-squareUse a filled square as marker
.uk-list-decimalUse decimal numbers as marker. Beginning with 1.
.uk-list-hyphenUse a hyphen as marker
  • Disc

    • List item 1
    • List item 2
    • List item 3

    Circle

    • List item 1
    • List item 2
    • List item 3

    Square

    • List item 1
    • List item 2
    • List item 3

    Decimal

    • List item 1
    • List item 2
    • List item 3

    Hyphen

    • List item 1
    • List item 2
    • List item 3
PR

Divider modifier

Add the .uk-list-divider class to separate list items with lines.

    • List item 1
    • List item 2
    • List item 3
PR

Striped modifier

Add zebra-striping to a list using the .uk-list-striped class.

    • List item 1
    • List item 2
    • List item 3
PR

Accessibility

Set the appropriate WAI-ARIA roles, states and properties to the List component.

  • If a <div> element is used, set the list role to the list, and the listitem role to the list items.