mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
Merge pull request #3922 from astrotim/addon-knobs-radios-horizontal
horizontal display for addon-knobs radios UI
This commit is contained in:
commit
9e87a74bc9
@ -6,6 +6,11 @@ const styles = {
|
||||
fontSize: 11,
|
||||
padding: '5px',
|
||||
},
|
||||
group: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
alignItems: 'center',
|
||||
},
|
||||
};
|
||||
|
||||
class RadiosType extends Component {
|
||||
@ -42,7 +47,7 @@ class RadiosType extends Component {
|
||||
render() {
|
||||
const { knob, onChange } = this.props;
|
||||
|
||||
return <div>{this.renderRadioButtonList(knob, onChange)}</div>;
|
||||
return <div style={styles.group}>{this.renderRadioButtonList(knob, onChange)}</div>;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user