mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
20 lines
369 B
TypeScript
20 lines
369 B
TypeScript
|
import React from 'react';
|
||
|
import { Tabs } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Tabs
|
||
|
defaultActiveKey="1"
|
||
|
centered
|
||
|
items={new Array(3).fill(null).map((_, i) => {
|
||
|
const id = String(i + 1);
|
||
|
return {
|
||
|
label: `Tab ${id}`,
|
||
|
key: id,
|
||
|
children: `Content of Tab Pane ${id}`,
|
||
|
};
|
||
|
})}
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
export default App;
|