---
order: 2
title: RadioGroup 垂直
---
垂直的 RadioGroup,配合更多输入框选项。
````jsx
import { Radio, Input } from 'antd';
const RadioGroup = Radio.Group;
const App = React.createClass({
getInitialState() {
return {
value: 1,
};
},
onChange(e) {
console.log('radio checked', e.target.value);
this.setState({
value: e.target.value,
});
},
render() {
const radioStyle = {
display: 'block',
height: '30px',
lineHeight: '30px',
};
return (
Option A
Option B
Option C
More...
{this.state.value === 4 ? : null}
);
},
});
ReactDOM.render(, mountNode);
````