--- 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'; 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 { const id = String(i); return { label: `Tab-${id}`, key: id, disabled: i === 28, children: `Content of tab ${id}`, }; })} />
); }; export default App; ```