--- 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. ```jsx import { Tabs, Select } from 'antd'; const { TabPane } = Tabs; const { Option } = Select; class Demo extends React.Component { state = { 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); ```