--- order: 3 title: zh-CN: 滑动 en-US: Slide --- ## zh-CN 可以左右、上下滑动,容纳更多标签。 ## en-US In order to fit in more tabs, they can slide left and right (or up and down). ```tsx import React, { useState } from 'react'; import { Tabs, Radio } from 'antd'; import type { RadioChangeEvent } from 'antd'; const { TabPane } = Tabs; type TabPosition = 'left' | 'right' | 'top' | 'bottom'; const App: React.FC = () => { const [mode, setMode] = useState('top'); const handleModeChange = (e: RadioChangeEvent) => { setMode(e.target.value); }; return (
Horizontal Vertical {[...Array.from({ length: 30 }, (_, i) => i)].map(i => ( Content of tab {i} ))}
); }; export default App; ```