UNPKG

@primer/components

Version:
18 lines (17 loc) 777 B
import React from 'react'; import { OverlayProps } from '../Overlay'; import { ComponentProps } from '../utils/types'; declare type AutocompleteOverlayInternalProps = { /** * The ref of the element that the position of the menu is based on. By default, the menu is positioned based on the text input */ menuAnchorRef?: React.RefObject<HTMLElement>; /** * Props to be spread on the internal `Overlay` component. */ overlayProps?: Partial<OverlayProps>; children?: React.ReactNode; } & Pick<React.AriaAttributes, 'aria-labelledby'>; declare const AutocompleteOverlay: React.FC<AutocompleteOverlayInternalProps>; export declare type AutocompleteOverlayProps = ComponentProps<typeof AutocompleteOverlay>; export default AutocompleteOverlay;