Skip to content

Commit

Permalink
[joy-ui][docs] Updated the List playground demo (#38499)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanivan committed Aug 17, 2023
1 parent 2a5469d commit 96c70f0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/data/joy/components/list/ListUsage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import ListItem from '@mui/joy/ListItem';
import ListItemContent from '@mui/joy/ListItemContent';
import ListItemDecorator from '@mui/joy/ListItemDecorator';
import ListItemButton from '@mui/joy/ListItemButton';
import Home from '@mui/icons-material/Home';
import HomeRoundedIcon from '@mui/icons-material/HomeRounded';
import ShoppingCartRoundedIcon from '@mui/icons-material/ShoppingCartRounded';
import KeyboardArrowRight from '@mui/icons-material/KeyboardArrowRight';
import JoyUsageDemo, {
prependLinesSpace,
Expand Down Expand Up @@ -53,12 +54,21 @@ ${prependLinesSpace(code, 3)}
<ListItem>
<ListItemButton {...props}>
<ListItemDecorator>
<Home />
<HomeRoundedIcon />
</ListItemDecorator>
<ListItemContent>Home</ListItemContent>
<KeyboardArrowRight />
</ListItemButton>
</ListItem>
<ListItem>
<ListItemButton {...props}>
<ListItemDecorator>
<ShoppingCartRoundedIcon />
</ListItemDecorator>
<ListItemContent>Orders</ListItemContent>
<KeyboardArrowRight />
</ListItemButton>
</ListItem>
</List>
)}
/>
Expand Down

0 comments on commit 96c70f0

Please sign in to comment.