| 1 |
import { forwardRef } from 'react'; |
| 2 |
import styles from '@patternfly/react-styles/css/components/Menu/menu'; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
|
| 5 |
export interface MenuSearchProps extends React.HTMLProps<HTMLElement> { |
| 6 |
/** Items within search */ |
| 7 |
children?: React.ReactNode; |
| 8 |
/** @hide Forwarded ref */ |
| 9 |
innerRef?: React.Ref<any>; |
| 10 |
} |
| 11 |
|
| 12 |
export const MenuSearch = forwardRef((props: MenuSearchProps, ref: React.Ref<HTMLDivElement>) => ( |
| 13 |
<div {...props} className={css(styles.menuSearch, props.className)} ref={ref} /> |
| 14 |
)); |
| 15 |
MenuSearch.displayName = 'MenuSearch'; |