--- 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 type { RadioChangeEvent } from 'antd'; import { Radio, Tabs } from 'antd'; import React, { useState } from 'react'; 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; ```