您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RadioButton.styled.js 859B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { Box, FormControlLabel, Radio } from "@mui/material";
  2. import styled from "styled-components";
  3. import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
  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: ${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. `;