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.

RadioButton.styled.js 849B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { Box, FormControlLabel, Radio } from "@mui/material";
  2. import styled from "styled-components";
  3. import selectedTheme from "../../../themes";
  4. export const RadioButtonContainer = styled(Box)`
  5. ${(props) =>
  6. props.fullwidth &&
  7. `
  8. width: 100%;
  9. display: flex;
  10. flex: 1;
  11. `}
  12. `;
  13. export const RadioButtonStyled = styled(Radio)`
  14. margin-top: 5px;
  15. margin-bottom: 5px;
  16. margin-right: 9px;
  17. width: 14px;
  18. height: 14px;
  19. `;
  20. export const FormControlLabelStyled = styled(FormControlLabel)`
  21. ${(props) =>
  22. props.fullwidth &&
  23. `
  24. width: 100%;
  25. display: flex;
  26. flex: 1;
  27. `}
  28. margin-right: 0;
  29. & label {
  30. font-family: ${selectedTheme.fonts.textFont};
  31. font-size: 12px;
  32. }
  33. & span:nth-child(1) svg {
  34. width: 16px;
  35. height: 16px;
  36. }
  37. & span:nth-child(2) {
  38. flex: 1;
  39. }
  40. `;