mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-05 15:39:45 +08:00
20 lines
371 B
TypeScript
20 lines
371 B
TypeScript
import React from 'react';
|
|
import { Tabs } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Tabs
|
|
defaultActiveKey="1"
|
|
centered
|
|
items={Array.from({ length: 3 }).map((_, i) => {
|
|
const id = String(i + 1);
|
|
return {
|
|
label: `Tab ${id}`,
|
|
key: id,
|
|
children: `Content of Tab Pane ${id}`,
|
|
};
|
|
})}
|
|
/>
|
|
);
|
|
|
|
export default App;
|