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.
26 lines
498 B
26 lines
498 B
2 years ago
|
import React from 'react';
|
||
|
import { AndroidOutlined, AppleOutlined } from '@ant-design/icons';
|
||
|
import { Tabs } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Tabs
|
||
|
defaultActiveKey="2"
|
||
|
items={[AppleOutlined, AndroidOutlined].map((Icon, i) => {
|
||
|
const id = String(i + 1);
|
||
|
|
||
|
return {
|
||
|
label: (
|
||
|
<span>
|
||
|
<Icon />
|
||
|
Tab {id}
|
||
|
</span>
|
||
|
),
|
||
|
key: id,
|
||
|
children: `Tab ${id}`,
|
||
|
};
|
||
|
})}
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
export default App;
|