You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
369 B
20 lines
369 B
2 years ago
|
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;
|