Skip to content

List

A <ul> with Tabler’s list helpers, for a list that needs no borders: people, links in a footer, the steps of a procedure. For bordered rows, use List group.

separated stacks the items with a gap (list-separated), for items that are blocks, such as a picture next to two lines of text. unstyled removes the bullets and the indent (list-unstyled).

inline lays the items out in a row (list-inline), and its List:Items follow it (list-inline-item). dots adds a dot between the items (list-inline-dots), and has no effect without inline:

ordered renders an <ol>, for items whose order matters:

icon replaces the bullets with icons (list-icon, Tabler 1.7+), for the features of a plan or the steps of a setup. The first icon of each item is its marker, centered on the first line: the icon of a List:Item. variant on the list colors every marker, variant on an item only its own:

With icon, inline lays short entries out in a row that wraps (list-icon-inline) instead of list-inline, and its items get no list-inline-item:

Prop Type Default Description
separated bool false Stacks the items with a gap (list-separated)
inline bool false Items in a row (list-inline), its List:Items following it; with icon, list-icon-inline
dots bool false With inline: a dot between the items (list-inline-dots)
unstyled bool false No bullets and no indent (list-unstyled)
ordered bool false Renders an <ol> instead of a <ul>
icon bool false Icons instead of bullets (list-icon, Tabler 1.7+)
variant string? null With icon: the color of every marker (--tblr-list-icon-color), a semantic color

Other attributes go to the root <ul> (or <ol>).

List:Item:

Prop Type Default Description
inline bool? null Item of an inline list (list-inline-item); null follows the parent List
icon string? null Icon before the content: the marker of an icon list
variant string? null Color of that icon (text-{variant}), overriding the color of the list

Other attributes go to the <li>. An item placed outside a List, e.g. in a list of your own markup, needs inline set by hand; inline="{{ false }}" keeps an item of an inline list out of the row.

Component Renders
List:Item <li>: one list item
Block Default
content Empty: the children, the List:Items

List:Item has an icon block, the Icon of its icon and variant props, before its content.

List:Item has an empty content block too, for the item content.