# <list-tile>

A Material list row with an icon, a title, a subtitle and an optional switch, checkbox or radio.

Category: Structure.

```ham
<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>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/list-tile-light.webp), [dark](https://hypeapps.dev/img/tags/list-tile-dark.webp).

## Attributes

| Name | What it does | Default |
|---|---|---|
| `checked` | Initial checked state (switch/checkbox) | `false` |
| `color` | Icon and toggle color |  |
| `icon` (also `leading-icon`, `leading_icon`) | Leading icon |  |
| `label` | Title text |  |
| `name` | Variable name for form scoping |  |
| `selected` | Initial selected state (radio) | `false` |
| `subtitle` | Subtitle text |  |
| `trailing` | Trailing icon |  |
| `type` | Tile variant (plain, switch, checkbox, radio) | `plain` |
| `value` | Radio/checkbox value |  |

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.

## Guides and recipes that use it

- [Navigation](https://hypeapps.dev/docs/guides/navigation.md)

## Related tags

- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<app-bar>`](https://hypeapps.dev/docs/reference/app-bar.md): The bar at the top of a screen: a title, a leading menu icon, and action icons on the right.
- [`<drawer-header>`](https://hypeapps.dev/docs/reference/drawer-header.md): The header at the top of a side drawer, such as the signed-in person's photo and name.
- [`<drawer-left>`](https://hypeapps.dev/docs/reference/drawer-left.md): A drawer that slides in from the left edge, opened by the menu icon or #id.open.
- [`<drawer-right>`](https://hypeapps.dev/docs/reference/drawer-right.md): A drawer that slides in from the right edge, for filters or details; open it with #id.open.
- [`<navigate>`](https://hypeapps.dev/docs/reference/navigate.md): A link around any element: tapping what's inside goes to another page.
- [`<root>`](https://hypeapps.dev/docs/reference/root.md): The page's top-level container; it turns into a scroll view with pinned headers when it holds sticky sections.
- [`<update>`](https://hypeapps.dev/docs/reference/update.md): In a stream event, sends its content into another element by id; elsewhere it is a plain block.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
