我正在使用 material-ui.com 提供的单选按钮组件,并设置了labelPlacement="start". 这将标签放在左侧,但我也希望标签左对齐,同时将单选按钮留在右侧。
<RadioGroup
name="switching"
value="switching"
onChange={this.handleEstablishingChange.bind(this)}
>
<FormControlLabel value="switching" control={<Radio />} labelPlacement="start" label={this.props.lang().justswitching} />
<hr />
<FormControlLabel value="new_source" control={<Radio />} labelPlacement="start" label={this.props.lang().newsource} />
</RadioGroup>
Run Code Online (Sandbox Code Playgroud)
material-ui ×1