You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CheckBox.styled.js 758B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Box, Checkbox, FormControlLabel } from "@mui/material";
  2. import styled from "styled-components";
  3. export const CheckBoxContainer = styled(Box)`
  4. ${(props) =>
  5. props.fullWidth &&
  6. `
  7. width: 100%;
  8. display: flex;
  9. flex: 1;
  10. `}
  11. `;
  12. export const CheckBoxStyled = styled(Checkbox)`
  13. color: ${(props) => props.boxcolor} !important;
  14. padding: 6px;
  15. `;
  16. export const FormControlLabelStyled = styled(FormControlLabel)`
  17. ${(props) =>
  18. props.fullWidth &&
  19. `
  20. width: 100%;
  21. display: flex;
  22. flex: 1;
  23. `}
  24. margin-right: 0;
  25. & label {
  26. font-family: "Open Sans";
  27. font-size: 12px;
  28. }
  29. & span:nth-child(1) svg {
  30. width: 18px;
  31. height: 18px;
  32. }
  33. & span:nth-child(2) {
  34. flex: 1;
  35. }
  36. `;