UNPKG

@linzjs/step-ag-grid

Version:

[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) > Reusable [ag-grid](https://www.ag-grid.com/) component for LINZ / Toitū te whenua.

68 lines (49 loc) 2.06 kB
# React-Menu > This is a fork of @szhsin/react-menu. v3.2.0 > An accessible and keyboard-friendly React menu library. **[Live examples and docs](https://szhsin.github.io/react-menu/)** ## Features - React menu components for easy and fast web development. - Unlimited levels of submenu. - Supports dropdown or context menu. - Supports radio and checkbox menu items. - Flexible menu positioning. - Comprehensive keyboard interactions. - Unstyled components and easy [customisation](https://szhsin.github.io/react-menu/#styling). - [Optimal level support](https://github.com/reactwg/react-18/discussions/70) (level 3) of **React 18** concurrent rendering. - Works in major browsers without polyfills. - [WAI-ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/patterns/menu/) compliant. ## Install with npm ```bash npm install @szhsin/react-menu ``` or with Yarn ```bash yarn add @szhsin/react-menu ``` ## Usage ```jsx import { Menu, MenuItem, MenuButton, SubMenu } from "@szhsin/react-menu"; export default function App() { return ( <Menu menuButton={<MenuButton>Open menu</MenuButton>}> <MenuItem>New File</MenuItem> <MenuItem>Save</MenuItem> <SubMenu label="Edit"> <MenuItem>Cut</MenuItem> <MenuItem>Copy</MenuItem> <MenuItem>Paste</MenuItem> </SubMenu> <MenuItem>Print...</MenuItem> </Menu> ); } ``` **[Edit on CodeSandbox](https://codesandbox.io/s/react-menu-starter-3ez3c)**<br> **[Visit more examples and docs](https://szhsin.github.io/react-menu/)**<br><br> [Migration from v2 to v3](https://github.com/szhsin/react-menu/wiki/Migration-from-v2-to-v3)<br> [Migration from v1 to v2](https://github.com/szhsin/react-menu/wiki/Migration-from-v1-to-v2) _Please note that React-Menu v3 requires React 16.14.0 or higher. If you are not able to upgrade React, you could install v2/v1 which requires React 16.8.0._ ## License [MIT](https://github.com/szhsin/react-menu/blob/master/LICENSE) Licensed.