Debian Codegraph @

node/@patternfly/react-core/src/demos/CustomMenus/OptionsMenu.md

raw
1 ---
2 id: Options menu
3 section: components
4 subsection: menus
5 source: react-demos
6 propComponents: ['MenuToggle', 'Divider', 'Select', 'SelectList', 'SelectOption', 'SelectGroup']
7 ---
8
9 import { useRef, useState } from 'react';
10 import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
11
12 As the `<OptionsMenu>` component is now deprecated, an options menu may now be built using the new suite of menu components. This is showcased in the following demo, which uses the new [select](/components/menus/select) component that is built off of menu.
13
14 ### Options menu
15
16 ```ts file="./examples/OptionsMenuDemo.tsx"
17
18 ```