Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Update lists.md
  • Loading branch information
anle9650 committed Mar 2, 2024
commit c59999f41da32a6ac8438f07a208c35889fd283c
24 changes: 22 additions & 2 deletions docs/data/material/components/lists/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@ Lists are a continuous group of text or images. They are composed of items conta

{{"component": "modules/components/ComponentLinkHeader.js"}}

## Basic List
## Introduction

Lists present information in a concise, easy-to-follow format through a continuous, vertical index of text or images.

Material UI Lists are implemented using a collection of related components:

- List: a wrapper for list items. Renders as a `<ul>` by default.
- List Item: a common list item. Renders as an `<li>` by default.
- List Item Button: an action element to be used inside a list item.
- List Item Icon: an icon to be used inside of a list item.
- List Item Avatar: an avatar to be used inside of a list item.
- List Item Text - a container inside a list item, used to display text content.
- List Divider: a separator between list items.
- List Subheader: a label for a nested list.

{{"demo": "BasicList.js", "bg": true}}

Expand All @@ -26,7 +39,14 @@ The last item of the previous demo shows how you can render a link:
</ListItemButton>
```

You can find a [demo with React Router following this section](/material-ui/integrations/routing/#list) of the documentation.
## Basics

```jsx
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
```

You can find a [demo with React Router following this section](/material-ui/guides/routing/#list) of the documentation.

## Nested List

Expand Down