react-icheck icon indicating copy to clipboard operation
react-icheck copied to clipboard

Radio buttons inline

Open gilnetoglartek opened this issue 7 years ago • 3 comments

I'm having an issue where I have a RadioGroup with two Radio objects inside. They appear like so: image

I need them to appear vertically, like so: image This was achieved by editing the label element inside the browser.

Where can I edit these settings specifically? This is the DOM structure in runtime: image

Thanks

gilnetoglartek avatar Feb 22 '18 19:02 gilnetoglartek

Use <div className="clearfix"></div> between the radio buttons.

iamkhush avatar Jun 20 '18 22:06 iamkhush

It worked. Thanks.

gilnetoglartek avatar Jun 21 '18 09:06 gilnetoglartek

How to add <div className="clearfix"></div> to display vertically ` <RadioGroup name={props.input_name} value={props.defaultValue} > { props.options && props.options.map((value, key) => ( <Radio style={{ display: 'block' }} id={value} key={key} radioClass="iradio_square-blue" increaseArea="20%" type="radio" label={ <span style={{padding: '1em'}}> { value.charAt(0).toUpperCase() + value.substring(1) } } value={value} onClick={props.handleChange} /> ) )

                }`

ojha007 avatar Dec 22 '20 05:12 ojha007