first commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
import React from "react";
|
||||
import Card from "@mui/material/Card";
|
||||
import { Typography } from "@mui/material";
|
||||
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 = { inputProps: { 'aria-label': 'Checkbox demo' } };
|
||||
|
||||
export default function Icon() {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
mb: '10px'
|
||||
}}
|
||||
>
|
||||
Icon
|
||||
</Typography>
|
||||
|
||||
<div>
|
||||
<Checkbox {...label} icon={<FavoriteBorder />} checkedIcon={<Favorite />} />
|
||||
<Checkbox
|
||||
{...label}
|
||||
icon={<BookmarkBorderIcon />}
|
||||
checkedIcon={<BookmarkIcon />}
|
||||
/>
|
||||
</div>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user