mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 08:09:13 +08:00
30 lines
934 B
TypeScript
30 lines
934 B
TypeScript
|
import React from 'react';
|
||
|
import { Menu } from 'antd';
|
||
|
import { MailOutlined, AppstoreOutlined, SettingOutlined } from '@ant-design/icons';
|
||
|
|
||
|
const App = () => (
|
||
|
<Menu mode="horizontal" defaultSelectedKeys={['mail']}>
|
||
|
<Menu.Item key="mail" icon={<MailOutlined />}>
|
||
|
Navigation One
|
||
|
</Menu.Item>
|
||
|
<Menu.SubMenu key="SubMenu" title="Navigation Two - Submenu" icon={<SettingOutlined />}>
|
||
|
<Menu.Item key="two" icon={<AppstoreOutlined />}>
|
||
|
Navigation Two
|
||
|
</Menu.Item>
|
||
|
<Menu.Item key="three" icon={<AppstoreOutlined />}>
|
||
|
Navigation Three
|
||
|
</Menu.Item>
|
||
|
<Menu.ItemGroup title="Item Group">
|
||
|
<Menu.Item key="four" icon={<AppstoreOutlined />}>
|
||
|
Navigation Four
|
||
|
</Menu.Item>
|
||
|
<Menu.Item key="five" icon={<AppstoreOutlined />}>
|
||
|
Navigation Five
|
||
|
</Menu.Item>
|
||
|
</Menu.ItemGroup>
|
||
|
</Menu.SubMenu>
|
||
|
</Menu>
|
||
|
);
|
||
|
|
||
|
export default App;
|