--- order: 3 title: zh-CN: 滑动 en-US: Slide --- ## zh-CN 可以左右滑动,容纳更多标签。 ## en-US Tab can be slide to left or right, which is used for a lot of tabs. ````jsx import { Tabs, Radio } from 'antd'; const TabPane = Tabs.TabPane; class SlidingTabsDemo extends React.Component { constructor(props) { super(props); this.state = { mode: 'top', }; } handleModeChange = (e) => { const mode = e.target.value; this.setState({ mode }); } render() { const { mode } = this.state; return (
Horizontal Vertical Content of tab 1 Content of tab 2 Content of tab 3 Content of tab 4 Content of tab 5 Content of tab 6 Content of tab 7 Content of tab 8 Content of tab 9
); } } ReactDOM.render(, mountNode); ````