Data display

Item

A row with an icon, a title, a description and actions, for settings and account pages and lists of things to manage. tk:item.group lays several on one surface, divided by lines.

Password

Changed 3 months ago

Blade

A bordered box with two rows divided by a line: an envelope, "Email" in bold with the address under it in muted text, and a "Change" button at the end of the row; then the password row. On a narrow screen the button moves under the texts.

A single item #

Outside a group the item has a border and rounded corners of its own.

Two-factor authentication

Off

Blade

A switch in the actions #

Any control fits in actions; here a switch bound to Livewire, with the description following it.

Two-factor authentication

Off

Blade

With an avatar #

The icon slot takes any content, such as an avatar.

Ana Souza

Admin

Bruno Reis

Editor

Blade

Reference

tk:item.group
└── tk:item ...

tk:item

Prop Type Default Description
icon string | slot null An icon name, or any content (an avatar, an image), at the start.
title string | slot null The title, translated, one size below size.
description string | slot | array null Muted text under the title, translated. An array renders as a list (list: prefix).
actions slot null Buttons, a switch or a badge at the end of the row.
size string md xs, sm, md, lg, xl, 2xl or 3xl. Inherited from the group.

Slots

Slot Description
default Content under the description.
actions Content at the end of the row.

tk:item.group

Prop Type Default Description
size string md Passed to every item.

Slots

Slot Description
default The items.

Customization

Classes on tk:item go to the row and on tk:item.group to the box. An item takes the prefixes of Content: icon:, container:, title:, description:, list: and actions:.

blade

Accessibility

The rows are plain blocks read in order. The title is not a heading unless title:level makes it one, as for a settings page with a heading per row.