Skip to content

Commit

Permalink
list item docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilan committed Jul 26, 2023
1 parent 31292a8 commit e6fa131
Showing 1 changed file with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,32 @@ In order to be interactive, you need to use `MenuItem` component, or use `ListIt

```
<List>
<ListItem>
<ListItemButton>
<ListItemIcon>
<InboxIcon />
</ListItemIcon>
<ListItemText primary="Inbox" />
</ListItemButton>
</ListItem>
<ListItemButton>
<ListItemIcon>
<Icon />
</ListItemIcon>
<ListItemText primary="List item text" />
</ListItemButton>
<List>
```

```
<MenuList>
<MenuItem>
<ListItemButton>
<ListItemIcon>
<InboxIcon />
</ListItemIcon>
<ListItemText primary="Inbox" />
</ListItemButton>
<ListItemIcon>
<Icon />
</ListItemIcon>
<ListItemText primary="List item text" />
</MenuItem>
<MenuList>
```

To render a link:

```
<ListItemButton component="a">
<ListItemText primary="List item text" />
</ListItemButton>
```

Note that `<ListItem button />` is deprecated.

0 comments on commit e6fa131

Please sign in to comment.