react-dropdown-aria-jesus
Version:
Simple and accessible React dropdown component
14 lines (13 loc) • 611 B
TypeScript
/// <reference types="react" />
import { DropdownOption, GetStyleFunction, OptionRendererFunction, OnOptionClicked } from '../utils/types';
interface DropdownContentProps {
selectedOption: string;
options: DropdownOption[];
focusedIndex: number;
onOptionClicked: OnOptionClicked;
getStyle: GetStyleFunction;
optionItemRenderer?: OptionRendererFunction;
empty: boolean;
}
declare function DropdownContent({ selectedOption, options, focusedIndex, onOptionClicked, getStyle, optionItemRenderer, empty, }: DropdownContentProps): JSX.Element;
export default DropdownContent;