UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

23 lines (22 loc) 807 B
import React from 'react'; import { Suggestions, TextInputElement } from './types'; type AutoCompleteSuggestionsProps = { suggestions: Suggestions | null; portalName?: string; top: number; left: number; onClose: () => void; onCommit: (suggestion: string) => void; inputRef: React.RefObject<TextInputElement>; visible: boolean; tabInsertsSuggestions: boolean; }; /** * Renders an overlayed list at the given relative coordinates. Handles keyboard navigation * and accessibility concerns. */ declare const AutocompleteSuggestions: { ({ suggestions, portalName, top, left, onClose, onCommit: externalOnCommit, inputRef, visible, tabInsertsSuggestions, }: AutoCompleteSuggestionsProps): JSX.Element; displayName: string; }; export default AutocompleteSuggestions;