Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

CheckBox.styled.js 621B

1234567891011121314151617181920212223242526
  1. import { Box, Checkbox, FormControlLabel } from "@mui/material";
  2. import styled from "styled-components";
  3. export const ComponentContainer = styled(Box)`
  4. ${props => props.fullWidth && (`
  5. width: 100%;
  6. display: flex;
  7. flex: 1;
  8. `)}
  9. `
  10. export const CheckBoxStyled = styled(Checkbox)`
  11. color: ${props => props.boxcolor} !important;
  12. padding: 6px;
  13. `
  14. export const FormControlLabelStyled = styled(FormControlLabel)`
  15. ${props => props.fullWidth && (`
  16. width: 100%;
  17. display: flex;
  18. flex: 1;
  19. `)}
  20. margin-right: 0;
  21. & span:nth-child(2) {
  22. flex: 1;
  23. }
  24. `