dimanche 8 octobre 2023

Checkbox styles for RadioButton

Need to create checkbox styling for Rudiobutton component

export default function YearsRadio(props) {


    return (


        <FormControl>

            <RadioGroup
                defaultValue=""
                name="radio-group"
                onChange={(e,value) => {
                    const id = parseInt(value, 10);
                    const option = year.find((o) => o.id === id);

                }}
            >
                {year.map((o) => (
                    <FormControlLabel value={o.id}
                                      label={o.label}
                                      control={<Radio />}

                                      />
                ))}

            </RadioGroup>
        </FormControl>

    );
}

Who has examples? The issue is there are default Radio styles in there. and if just to apply styles in sx for &Mui components it's not ending up good, I'm getting mix of Radio and applied styles




Aucun commentaire:

Enregistrer un commentaire