Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
ListItem Class Reference

A Material Design 3 list item with leading, content, and trailing slots. More...

Inheritance diagram for ListItem:

Detailed Description

A Material Design 3 list item with leading, content, and trailing slots.

A list item is composed of three slots: leading, content, and trailing. The content slot is required and contains a label plus optional overline and supporting text. The leading and trailing slots are optional and accept visual elements, selection controls, or any custom content.

Height adapts automatically according to the MD3 baseline specification: one-line items are 56 dp tall, two-line items are 72 dp tall, and three-line items are 88 dp tall.

MD.ListItem {
text: "Primary label"
supportingText: "Supporting line"
leading: MD.Icon {
name: "account_circle"
}
trailing: MD.Icon {
name: "chevron_right"
}
}

For more information see the Material Design 3 list guidelines.

Definition at line 38 of file ListItem.qml.


The documentation for this class was generated from the following file: