Reputation: 133
I am using react-reduxm office-fabric-ui. Here is my code:
<Icon className="delete-transform-icon" iconName="Delete" />
<Dropdown
className="modal-value-transform-type-dropdown"
label={translate("transformTypeLabel")}
placeHolder={this.state.transform.transformType}
ariaLabel={translate("transformTypeLabel")}
/>
<br />
<TextField
className="modal-value-transform-type-TextField"
label={translate("transformDefaultValue")}
ariaLabel={translate("transformDefaultValue")}
placeholder={this.state.transform.defaultValue}
/>
But I want them in one line like:
How can I do it?
Upvotes: 0
Views: 49
Reputation: 8102
I would recommend to remove the br
and use any GRID LAYOUT
like bootstrap, material-ui etc. It is much easier to manage elements in columns.
you can do something like this:
<div className='row'>
<div className = 'col-4'></div>
<div className = 'col-4'></div>
<div className = 'col-4'></div>
</div>
This is just an basic example how you can utilize the power of grid layout. Mostly UI libraries has 12 columns / row grid layout. I hope this would be helpful.
Upvotes: 1