Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/material/form-field/form-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The following Angular Material components are designed to work inside a `<mat-fo
- [`<input matNativeControl>` &amp; `<textarea matNativeControl>`](https://material.angular.io/components/input/overview)
- [`<select matNativeControl>`](https://material.angular.io/components/select/overview)
- [`<mat-select>`](https://material.angular.io/components/select/overview)
- [`<mat-chip-list>`](https://material.angular.io/components/chips/overview)
- [`<mat-chip-set>`](https://material.angular.io/components/chips/overview)

<!-- example(form-field-overview) -->

Expand Down
22 changes: 22 additions & 0 deletions src/material/list/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,28 @@ To add an icon to your list item, use the `matListItemIcon` attribute.
</mat-list>
```

### Lists with meta section icons

To add a meta icon to your list item, use the `matListItemMeta` directive. This allows you to display an icon or any other content in the meta section of the list item.


```html
<mat-list>
@for (message of messages; track message) {
<mat-list-item>
<div matListItemMeta>
<mat-icon>folder</mat-icon>
</div>
<h3 matListItemTitle>{{message.from}}</h3>
<p matListItemLine>
<span>{{message.subject}}</span>
<span class="demo-2"> -- {{message.content}}</span>
</p>
</mat-list-item>
}
</mat-list>
```

### Lists with avatars

To include an avatar image, add an image tag with an `matListItemAvatar` attribute.
Expand Down
Loading