Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to vertical align material ui Checkbox

Tags:

material-ui

Simple put, I'd like to vertical align the Checkbox from Material UI.

enter image description here

like image 957
K. D. Avatar asked Feb 26 '26 14:02

K. D.


1 Answers

Try changing alignItems style property of FormControlLabel.

This worked for me:

<FormControlLabel
    sx={{ alignItems: 'flex-start' }}
    control={
        <Checkbox
            sx={{
                marginTop: -1,
            }}
        />
    }
/>
like image 116
Zlo Bae Avatar answered Mar 01 '26 11:03

Zlo Bae



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!