{"repo":"react-component/menu","free":true,"listed":false,"github":"https://github.com/react-component/menu","clone":"git clone https://github.com/react-component/menu.git","description":"🧭 Accessible React menu primitives for navigation, command surfaces, and nested item trees.","language":"TypeScript","stars":700,"topics":["ant-design","antd","javascript","react","react-component"],"license":"MIT","category":"ui-components","readme_excerpt":"@rc-component/menu Part of the Ant Design ecosystem. 🧭 Accessible React menu primitives for navigation, command surfaces, and nested item trees. English 简体中文 Highlights - Horizontal, vertical, and inline menu modes. - Controlled and uncontrolled selection, open keys, and active key state. - items configuration API with legacy children support. - Sub menus, item groups, dividers, icons, overflow, popup rendering, and keyboard focus helpers. - TypeScript definitions and semantic classNames / styles slots. - Used by Ant Design as the shared menu foundation. Install Usage Examples Run the local dumi site: Then open http://localhost:8000 . API Menu Property Type Default Description --- --- --- --- activeKey string - Controlled active item key. builtinPlacements Record - Popup alignment placements for sub menus. className string - Class name for the root menu. classNames Partial - Semantic class names for menu slots. defaultActiveFirst boolean false Focus the first enabled item when active key is absent. defaultOpenKeys string[] [] Initial open sub menu keys. defaultSelectedKeys string[] [] Initial selected item keys. defaultMotions Partial - Motion config by menu mode. direction 'ltr' \\ 'rtl' - Layout direction. disabled boolean false Disable all menu interactions. disabledOverflow boolean false Disable overflow measurement. expandIcon ReactNode \\ (props: RenderIconInfo) = ReactNode - Custom sub menu expand icon. forceSubMenuRender boolean false Render popup sub menus before they","default_branch":null,"files":null,"tree":[],"storefront":"/r/react-component","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/react-component/menu/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}