--- order: 6 title: zh-CN: 位置 en-US: Position --- ## zh-CN 有四个位置,`tabPosition="left|right|top|bottom"`。 ## en-US Tab's position: left, right, top or bottom. ````__react import { Tabs, Select } from 'antd'; const TabPane = Tabs.TabPane; const Option = Select.Option; const Demo = React.createClass({ getInitialState() { return { tabPosition: 'top', }; }, changeTabPosition(tabPosition) { this.setState({ tabPosition }); }, render() { return (
Tab position:
Content of Tab 1 Content of Tab 2 Content of Tab 3
); }, }); ReactDOM.render(, mountNode); ````