mercredi 1 septembre 2021

how to put the checkbox after the label in material ui?

              <FormControlLabel
                control={
                  <Checkbox
                    style={box_style}
                    icon={<RadioButtonUnchecked style= />}
                    checkedIcon={<Cancel style= />}
                  />
                }
                label={
                  <Box component="div" fontSize={12}>
                    Label Name
                  </Box>
                }
              />

The above is how the component is defined. The Box comes before the label by default. How to reverse the order? Label comes before Checkbox, i.e.




Aucun commentaire:

Enregistrer un commentaire