Skip to content

Commit f9bc17a

Browse files
committed
Update docs and demos
1 parent effd56c commit f9bc17a

53 files changed

Lines changed: 375 additions & 829 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/data/material/components/chips/AvatarChips.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/data/material/components/chips/AvatarChips.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/data/material/components/chips/AvatarChips.tsx.preview

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/data/material/components/chips/BasicChips.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Stack from '@mui/material/Stack';
44
export default function BasicChips() {
55
return (
66
<Stack direction="row" spacing={1}>
7-
<Chip label="Chip Filled" />
8-
<Chip label="Chip Outlined" variant="outlined" />
7+
<Chip label="Filled" />
8+
<Chip label="Outlined" variant="outlined" />
99
</Stack>
1010
);
1111
}

docs/data/material/components/chips/BasicChips.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Stack from '@mui/material/Stack';
44
export default function BasicChips() {
55
return (
66
<Stack direction="row" spacing={1}>
7-
<Chip label="Chip Filled" />
8-
<Chip label="Chip Outlined" variant="outlined" />
7+
<Chip label="Filled" />
8+
<Chip label="Outlined" variant="outlined" />
99
</Stack>
1010
);
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<Chip label="Chip Filled" />
2-
<Chip label="Chip Outlined" variant="outlined" />
1+
<Chip label="Filled" />
2+
<Chip label="Outlined" variant="outlined" />
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import Avatar from '@mui/material/Avatar';
2+
import Chip from '@mui/material/Chip';
3+
import Stack from '@mui/material/Stack';
4+
import ScheduleIcon from '@mui/icons-material/Schedule';
5+
import DoneIcon from '@mui/icons-material/Done';
6+
7+
export default function ChipAdornments() {
8+
return (
9+
<Stack direction="row" spacing={1}>
10+
<Chip
11+
label="Maya Johnson"
12+
color="primary"
13+
startAdornment={<Avatar>M</Avatar>}
14+
/>
15+
<Chip
16+
label="In progress"
17+
variant="outlined"
18+
color="secondary"
19+
startAdornment={<ScheduleIcon />}
20+
/>
21+
<Chip label="Completed" color="success" endAdornment={<DoneIcon />} />
22+
</Stack>
23+
);
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import Avatar from '@mui/material/Avatar';
2+
import Chip from '@mui/material/Chip';
3+
import Stack from '@mui/material/Stack';
4+
import ScheduleIcon from '@mui/icons-material/Schedule';
5+
import DoneIcon from '@mui/icons-material/Done';
6+
7+
export default function ChipAdornments() {
8+
return (
9+
<Stack direction="row" spacing={1}>
10+
<Chip
11+
label="Maya Johnson"
12+
color="primary"
13+
startAdornment={<Avatar>M</Avatar>}
14+
/>
15+
<Chip
16+
label="In progress"
17+
variant="outlined"
18+
color="secondary"
19+
startAdornment={<ScheduleIcon />}
20+
/>
21+
<Chip label="Completed" color="success" endAdornment={<DoneIcon />} />
22+
</Stack>
23+
);
24+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Chip
2+
label="Maya Johnson"
3+
color="primary"
4+
startAdornment={<Avatar>M</Avatar>}
5+
/>
6+
<Chip
7+
label="In progress"
8+
variant="outlined"
9+
color="secondary"
10+
startAdornment={<ScheduleIcon />}
11+
/>
12+
<Chip label="Completed" color="success" endAdornment={<DoneIcon />} />
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import Chip from '@mui/material/Chip';
2+
import ChipButton from '@mui/material/ChipButton';
3+
import Stack from '@mui/material/Stack';
4+
import PersonAddIcon from '@mui/icons-material/PersonAdd';
5+
import LoopIcon from '@mui/icons-material/Loop';
6+
7+
export default function ChipButtons() {
8+
return (
9+
<Stack direction="row" spacing={1}>
10+
<Chip
11+
label="Assign"
12+
startAdornment={<PersonAddIcon />}
13+
action={<ChipButton onClick={() => {}} />}
14+
/>
15+
<Chip
16+
label="Reset"
17+
variant="outlined"
18+
color="primary"
19+
endAdornment={<LoopIcon />}
20+
action={<ChipButton onClick={() => {}} />}
21+
/>
22+
</Stack>
23+
);
24+
}

0 commit comments

Comments
 (0)