<list-tile>
A Material list row with an icon, a title, a subtitle and an optional switch, checkbox or radio.
<column style="w-full">
<list-tile icon="person"
label="Account"
subtitle="maya@example.com"
trailing="chevron_right"/>
<list-tile icon="notifications"
label="Notifications"
color="teal"
type="switch"
name="notify"
checked="true"/>
<list-tile icon="dark_mode"
label="Dark mode"
type="checkbox"
name="dark"/>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
checked |
Initial checked state (switch/checkbox) boolean |
false |
color |
Icon and toggle color color |
|
iconalso leading-icon, leading_icon |
Leading icon string |
|
label |
Title text string |
|
name |
Variable name for form scoping string |
|
selected |
Initial selected state (radio) boolean |
false |
subtitle |
Subtitle text string |
|
trailing |
Trailing icon string |
|
type |
Tile variant plain, switch, checkbox, radio |
plain |
value |
Radio/checkbox value string |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.