21 lines
654 B
TypeScript
21 lines
654 B
TypeScript
|
|
import Checkbox from '@mui/material/Checkbox';
|
||
|
|
import FavoriteBorder from '@mui/icons-material/FavoriteBorder';
|
||
|
|
import Favorite from '@mui/icons-material/Favorite';
|
||
|
|
import BookmarkBorderIcon from '@mui/icons-material/BookmarkBorder';
|
||
|
|
import BookmarkIcon from '@mui/icons-material/Bookmark';
|
||
|
|
|
||
|
|
const label = { slotProps: { input: { 'aria-label': 'Checkbox demo' } } };
|
||
|
|
|
||
|
|
export default function IconCheckboxes() {
|
||
|
|
return (
|
||
|
|
<div>
|
||
|
|
<Checkbox {...label} icon={<FavoriteBorder />} checkedIcon={<Favorite />} />
|
||
|
|
<Checkbox
|
||
|
|
{...label}
|
||
|
|
icon={<BookmarkBorderIcon />}
|
||
|
|
checkedIcon={<BookmarkIcon />}
|
||
|
|
/>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|