Socket
Book a DemoInstallSign in
Socket

antd-menu

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

antd-menu

Antd menu component.

unpublished
latest
Source
npmnpm
Version
2.2.4
Version published
Maintainers
1
Created
Source

antd-menu

扩展 antd Menu 组件的功能,支持 React Router 导航功能,以及自动从当前地址计算激活的导航。

安装

pnpm add antd-menu

使用

import Menu, { MenuItem } from 'antd-menu'

const config: MenuItem[] = [
    {
        key: 'user',
        path: '/user',
        label: '用户',
        icon: <UserOutlined />,
    },
    {
        key: 'group',
        path: '/group',
        label: '组',
        icon: <TeamOutlined />,
    }
]

function App() {
    <div >
        <Menu items={menuItems} />
    </div>
}

Keywords

antd

FAQs

Package last updated on 19 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts