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