選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

RadioButton.styled.js 784B

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