Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Toolbox checkboxes inline

I'm currently facing a problem with react-toolbox-checkboxes https://github.com/react-toolbox/react-toolbox/tree/dev/components/checkbox while trying to display them inline like this:

enter image description here

But all I can do is displaying them like this:

enter image description here

Code looks like this:

           <Checkbox
                checked={this.state.checkboxes[0].task}
                label={t('search:instance_template.task')}
                onChange={() => {
                    this.handleCheckboxChange(0, 'task')
                }}
            />

Styles like this:

input[type="checkbox"]{
    display: inline-block;
}

The checkboxes does receive classes and attributes but attributes like "display: inline-block" don't have any effect onto them. Any ideas? Thanks!

like image 823
Nocebo Avatar asked Jun 06 '26 10:06

Nocebo


1 Answers

[Reading Purposes] Linking two pages as well that will help on how each style works. Flexbox, CSSFlexbox

Sample related to question.

enter image description here

like image 97
Hash Avatar answered Jun 08 '26 00:06

Hash