@mui/material APIs
- Button
- IconButton
- TextField
- Typography
- Box
- Toolbar
- ListItemText
- AppBar
- ListItem
- MenuItem
- List
- Grid
- CssBaseline
- Drawer
- Tooltip
- Menu
- Checkbox
- Paper
- Card
- CardContent
- ListItemIcon
- CircularProgress
- Select
- FormControl
- TablePagination
- Table
- TableHead
- TableRow
- TableCell
- TableBody
- Divider
- FormControlLabel
- Stack
- Switch
- Autocomplete
- Collapse
- Dialog
- InputAdornment
- Avatar
- Chip
- DialogTitle
- TableSortLabel
- Link
- Alert
- createTheme
- Input
- CardActions
- ListItemButton
- styled
- useMediaQuery
- DialogActions
- DialogContent
- InputLabel
- Container
- Breadcrumbs
- TableContainer
- ThemeProvider
- OutlinedInput
- Hidden
- Snackbar
- CardActionArea
- Icon
- ListItemSecondaryAction
- Accordion
- AccordionSummary
- AccordionDetails
- Popover
- FormHelperText
- SvgIcon
- Portal
- Slide
- FormLabel
- RadioGroup
- Radio
- Tabs
- Tab
- Slider
- LinearProgress
- Fade
- Grow
- Modal
- FormGroup
- CardMedia
- PaginationItem
- colors
- CardHeader
- StyledEngineProvider
- ListItemAvatar
- adaptV4Theme
- DialogContentText
- Backdrop
- ImageListItemBar
- MenuList
- GlobalStyles
- ClickAwayListener
- AlertTitle
- debounce
- NativeSelect
- InputBase
- ToggleButton
- ToggleButtonGroup
- createMuiTheme
- useTheme
- Badge
- ButtonBase
- Fab
- lighten
- SnackbarContent
OtherRelated APIs
@mui/material#lighten JavaScript Examples
The following examples show how to use
@mui/material#lighten.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StatCards2.jsx From matx-react with MIT License | 5 votes |
StatCards2 = () => {
const { palette } = useTheme();
const textError = palette.error.main;
const bgError = lighten(palette.error.main, 0.85);
return (
<Grid container spacing={3} sx={{ mb: 3 }}>
<Grid item xs={12} md={6}>
<Card elevation={3} sx={{ p: 2 }}>
<ContentBox>
<FabIcon size="medium" sx={{ background: 'rgba(9, 182, 109, 0.15)' }}>
<Icon sx={{ color: '#08ad6c' }}>trending_up</Icon>
</FabIcon>
<H3 textcolor={'#08ad6c'}>Active Users</H3>
</ContentBox>
<ContentBox sx={{ pt: 2 }}>
<H1>10.8k</H1>
<IconBox sx={{ background: 'rgba(9, 182, 109, 0.15)' }}>
<Icon className="icon">expand_less</Icon>
</IconBox>
<Span textcolor={'#08ad6c'}>(+21%)</Span>
</ContentBox>
</Card>
</Grid>
<Grid item xs={12} md={6}>
<Card elevation={3} sx={{ p: 2 }}>
<ContentBox>
<FabIcon size="medium" sx={{ background: bgError, overflow: 'hidden' }}>
<Icon sx={{ color: textError }}>star_outline</Icon>
</FabIcon>
<H3 textcolor={textError}>Transactions</H3>
</ContentBox>
<ContentBox sx={{ pt: 2 }}>
<H1>$2.8M</H1>
<IconBox sx={{ background: bgError }}>
<Icon className="icon">expand_less</Icon>
</IconBox>
<Span textcolor={textError}>(+21%)</Span>
</ContentBox>
</Card>
</Grid>
</Grid>
);
}