UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

33 lines (26 loc) 850 B
--- id: Application launcher section: components subsection: menus source: react-demos propComponents: [ 'MenuToggle', 'MenuSearch', 'MenuSearchInput', 'Tooltip', 'Divider', 'SearchInput', 'Dropdown', 'DropdownGroup', 'DropdownList', 'DropdownItem' ] --- import { cloneElement, Fragment, useRef, useState } from 'react'; import ThIcon from '@patternfly/react-icons/dist/esm/icons/th-icon'; import brandImg from '../assets/PF-IconLogo.svg'; As the application launcher component is now deprecated, an application launcher may now be built using the new suite of menu components. This is showcased in the following demo, which uses the new [dropdown](/components/menus/dropdown) component that is built off of menu. ### Application launcher menu ```ts file="./examples/ApplicationLauncherDemo.tsx" ```