@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
29 lines (28 loc) • 1.24 kB
TypeScript
interface UseComboboxTargetPropsInput {
targetType: 'input' | 'button' | undefined;
withAriaAttributes: boolean | undefined;
withKeyboardNavigation: boolean | undefined;
withExpandedAttribute: boolean | undefined;
onKeyDown: React.KeyboardEventHandler<HTMLInputElement> | undefined;
autoComplete: string | undefined;
}
export declare function useComboboxTargetProps({ onKeyDown, withKeyboardNavigation, withAriaAttributes, withExpandedAttribute, targetType, autoComplete, }: UseComboboxTargetPropsInput): {
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
'aria-haspopup': string;
'aria-expanded': true | undefined;
'aria-controls': string | null | undefined;
'aria-activedescendant': string | undefined;
autoComplete: string | undefined;
'data-expanded': true | undefined;
'data-mantine-stop-propagation': true | undefined;
} | {
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
'aria-haspopup'?: undefined;
'aria-expanded'?: undefined;
'aria-controls'?: undefined;
'aria-activedescendant'?: undefined;
autoComplete?: undefined;
'data-expanded'?: undefined;
'data-mantine-stop-propagation'?: undefined;
};
export {};