List

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

List

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

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.

<ul class="uk-list">
    <li></li>
    <li></li>
    <li></li>
</ul>

Style type modifiers

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

ClassDescription
.uk-list-discUse filled circle as 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
<ul class="uk-list uk-list-disc"></ul>

Color modifiers

Add one of the following classes to set the marker color.

ClassDescription
.uk-list-mutedAdd this class to mute the marker.
.uk-list-emphasisAdd this class to emphasize the marker.
.uk-list-primaryAdd this class to emphasize the marker with the primary color.
.uk-list-secondaryAdd this class to emphasize the marker with the secondary color.
<ul class="uk-list uk-list-disc uk-list-primary"></ul>

Note The color modifiers don’t work in Chrome and Edge because the ::marker pseudo-element is not supported yet. Vote this Chromium issue up, to give it more attention.


Image bullet modifier

Add the .uk-list-bullet class to set a custom image bullet as marker of a list item. Mind, that it can not be combined with color modifiers.

<ul class="uk-list uk-list-bullet"></ul>

Divider modifier

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

<ul class="uk-list uk-list-divider"></ul>

Striped modifier

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

<ul class="uk-list uk-list-striped"></ul>

Size modifier

Add one of the following classes to increase or decrease the spacing between list items. You can combine this with any of the other list modifiers.

ClassDescription
.uk-list-largeIncrease the spacing between list items.
.uk-list-collapseRemove the spacing between list items.
<ul class="uk-list uk-list-large"></ul>