Skip to content

zk-list-item ​

An item of a list, with a title, a subtitle, and parts before and after.

Props ​

PropTypeDefaultDescription
titlestring|nullnullTitle
subtitlestring|nullnullSecond line
hrefstring|nullnullMakes the item a link
disabledboolfalsedata-disabled and aria-disabled; a disabled item is never a link
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultExtra content
prependBefore the text (icon, avatar)
appendAfter the text (count, action)

An <li>: put it in a <ul> or <ol>. Class hooks: list-item, list-item-body, list-item-prepend, list-item-content, list-item-title, list-item-subtitle, list-item-append.

Examples ​

Inbox ​

blade
<ul>
    <x-zk-list-item title="Inbox" subtitle="3 new" href="/inbox">
        <x-slot:append>3</x-slot>
    </x-zk-list-item>
</ul>

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.