UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

26 lines (25 loc) 1.06 kB
interface UseComboboxTargetPropsInput { targetType: 'input' | 'button' | undefined; withAriaAttributes: boolean | undefined; withKeyboardNavigation: boolean | undefined; withExpandedAttribute: boolean | undefined; onKeyDown: React.KeyboardEventHandler<HTMLInputElement> | undefined; } export declare function useComboboxTargetProps({ onKeyDown, withKeyboardNavigation, withAriaAttributes, withExpandedAttribute, targetType, }: UseComboboxTargetPropsInput): { onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void; 'aria-haspopup': string; 'aria-expanded': true | undefined; 'aria-controls': string | null; 'aria-activedescendant': string | undefined; autoComplete: string; 'data-expanded': boolean | undefined; } | { onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void; 'aria-haspopup'?: undefined; 'aria-expanded'?: undefined; 'aria-controls'?: undefined; 'aria-activedescendant'?: undefined; autoComplete?: undefined; 'data-expanded'?: undefined; }; export {};