Skip to the content
Konstruktor UI

Surfaces and display

List

Rows of like things, each with an optional picture, a title, a line under it and something at the end. ul.kui-list holds .kui-list-items; an item can be plain, a link or a button.

CSS only

Examples

Links with an avatar and a time

HTML
<ul class="kui-list">
  <li><a class="kui-list-item" href="#list-1">
    <span class="kui-list-item__lead"><span class="kui-avatar" aria-hidden="true">JP</span></span>
    <span class="kui-list-item__main"><span class="kui-list-item__title">Jelena Petrović</span><span class="kui-list-item__sub kui-truncate">Poslala sam potpisani ugovor, molim potvrdu prijema.</span></span>
    <span class="kui-list-item__end"><time datetime="2026-11-27T09:42">09:42</time><span class="kui-list-item__chevron" aria-hidden="true"></span></span>
  </a></li>
  <li><a class="kui-list-item" href="#list-2">
    <span class="kui-list-item__lead"><span class="kui-avatar" aria-hidden="true">ŽĐ</span></span>
    <span class="kui-list-item__main"><span class="kui-list-item__title">Živko Đurđević</span><span class="kui-list-item__sub kui-truncate">Can we move the hearing to the 14th?</span></span>
    <span class="kui-list-item__end"><time datetime="2026-11-26">Yesterday</time><span class="kui-list-item__chevron" aria-hidden="true"></span></span>
  </a></li>
  <li><a class="kui-list-item" href="#list-3">
    <span class="kui-list-item__lead"><span class="kui-avatar" aria-hidden="true"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#building-2"></use></svg></span></span>
    <span class="kui-list-item__main"><span class="kui-list-item__title">Poreska uprava</span><span class="kui-list-item__sub kui-truncate">Rešenje o porezu na imovinu za 2026.</span></span>
    <span class="kui-list-item__end"><time datetime="2026-11-24">24 Nov</time><span class="kui-list-item__chevron" aria-hidden="true"></span></span>
  </a></li>
</ul>

Plain rows with icons, and a list of choices

--plain drops the frame, for a list inside a card. Button items choose; the chosen one has aria-current="true".

  • Tužba.pdf1,2 MB · 3 March 2026
  • Odgovor na tužbu.docx84 KB · 2 April 2026
HTML
<div class="kui-grid">
  <ul class="kui-list kui-list--plain">
    <li><div class="kui-list-item"><span class="kui-list-item__lead"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#file-text"></use></svg></span><span class="kui-list-item__main"><span class="kui-list-item__title">Tužba.pdf</span><span class="kui-list-item__sub">1,2 MB · 3 March 2026</span></span></div></li>
    <li><div class="kui-list-item"><span class="kui-list-item__lead"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#file-text"></use></svg></span><span class="kui-list-item__main"><span class="kui-list-item__title">Odgovor na tužbu.docx</span><span class="kui-list-item__sub">84 KB · 2 April 2026</span></span></div></li>
  </ul>
  <ul class="kui-list" aria-label="Choose an account">
    <li><button class="kui-list-item" type="button" aria-current="true"><span class="kui-list-item__main"><span class="kui-list-item__title">Kancelarija Đorđević</span><span class="kui-list-item__sub">Team · 6 people</span></span><span class="kui-list-item__end"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#check"></use></svg></span></button></li>
    <li><button class="kui-list-item" type="button"><span class="kui-list-item__main"><span class="kui-list-item__title">Milica Šarić</span><span class="kui-list-item__sub">Personal</span></span></button></li>
  </ul>
</div>

States

Every state

Hover on a link or button item gives a soft fill; focus shows the ring inside the row. Current or selected: the accent fill and a line on the left. A long line is cut with .kui-truncate, or wraps without it. An empty list is replaced by an empty state, not shown empty.

  • Default link
  • Current
  • Wraps: Ugovor o kupoprodaji nepokretnosti sa klauzulom o zadržavanju prava svojine do isplate cele kupoprodajne ceneDraft
  • Cut: 房地产买卖合同及所有权保留条款的补充协议文本
HTML
<ul class="kui-list">
  <li><a class="kui-list-item" href="#list-s1"><span class="kui-list-item__main"><span class="kui-list-item__title">Default link</span></span><span class="kui-list-item__chevron" aria-hidden="true"></span></a></li>
  <li><a class="kui-list-item" href="#list-s2" aria-current="true"><span class="kui-list-item__main"><span class="kui-list-item__title">Current</span></span></a></li>
  <li><div class="kui-list-item"><span class="kui-list-item__main"><span class="kui-list-item__title">Wraps: Ugovor o kupoprodaji nepokretnosti sa klauzulom o zadržavanju prava svojine do isplate cele kupoprodajne cene</span></span><span class="kui-list-item__end"><span class="kui-badge">Draft</span></span></div></li>
  <li><div class="kui-list-item"><span class="kui-list-item__main"><span class="kui-list-item__title kui-truncate">Cut: 房地产买卖合同及所有权保留条款的补充协议文本</span></span></div></li>
</ul>

Classes and attributes

ul.kui-list
The list, framed. --plain drops the frame.
.kui-list-item
A row: a div, a link or a button.
.kui-list-item__lead
An icon or an avatar at the start.
.kui-list-item__main, __title, __sub
The text: a title and a line under it.
.kui-list-item__end
A time, a badge, an icon or a button at the end.
.kui-list-item__chevron
A small arrow for a row that leads somewhere.
aria-current="true", aria-selected="true"
The current or chosen row.
.kui-truncate
Cuts one line with an ellipsis.

Keyboard

Tab
Moves from one link or button row to the next.
Enter
Opens a link row or presses a button row.

Accessibility

  • Use a real list (<ul>), so screen readers say how many items there are.
  • A whole row as one link reads as one name: keep its text short, and hide decoration (avatars, arrows) with aria-hidden.
  • Do not put a second button inside a link row; give the row a menu at the end instead, outside the link.
  • A cut line keeps its full text in the page; show it in full where the item opens.

Do and do not

Do

  • Put the word a person scans for first in the title.
  • Keep the end column short: a time, a count, a badge.
  • Use the same lead (avatar or icon) for every row.

Do not

  • Do not use a list for data with several columns to compare; use a table.
  • Do not cut a title that people must read to tell rows apart.
  • Do not make some rows links and others not in the same list.