@mui/material#styled JavaScript Examples

The following examples show how to use @mui/material#styled. 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: CustomInputs.jsx    From CRM with Apache License 2.0 6 votes vote down vote up
CustomAuthInput = (props) => {
  const CssTextField = styled(TextField)({
    "& label.Mui-focused": {
      color: "#e14eca",
    },
    "& .MuiInput-underline:after": {
      borderBottomColor: "#e14eca",
    },
    "& .MuiOutlinedInput-root": {
      "& fieldset": {
        borderColor: "rgba(34,42,66,.2)",
      },
      "&:hover fieldset": {
        borderColor: "rgba(34,42,66,.5)",
      },
      "&.Mui-focused fieldset": {
        borderColor: "#e14eca",
      },
    },
  });
  return <CssTextField {...props} fullWidth className="mb-2" />;
}
Example #2
Source File: ChatAvatar.jsx    From matx-react with MIT License 6 votes vote down vote up
StatusCircle = styled('div')(({ theme, status }) => ({
  height: '14px',
  width: '14px',
  bottom: '0px',
  right: '-3px',
  borderRadius: '7px',
  position: 'absolute',
  border: '2px solid white',
  background: status === 'online' ? theme.palette.primary.main : theme.palette.error.main,
  color: status !== 'online' && 'white !important',
}))
Example #3
Source File: index.js    From mui-image with ISC License 5 votes vote down vote up
Line = styled(Box)({
	display: 'flex',
	alignItems: 'center',
	'& .MuiTextField-root': {
		margin: '0 8px',
	},
})
Example #4
Source File: Brand.jsx    From matx-react with MIT License 5 votes vote down vote up
BrandRoot = styled(Box)(() => ({
  display: 'flex',
  alignItems: 'center',
  justifyContent: 'space-between',
  padding: '20px 18px 20px 29px',
}))