@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
35 lines • 1.73 kB
TypeScript
import React from 'react';
import { AutosuggestProps } from '../../../autosuggest/interfaces';
import { BaseChangeDetail, BaseInputProps, InputAutoCorrect, InputClearLabel, InputKeyEvents } from '../../../input/interfaces';
import { BaseComponentProps } from '../../base-component';
import { FormFieldValidationControlProps } from '../../context/form-field-context';
import { NonCancelableEventHandler } from '../../events';
import { InternalBaseComponentProps } from '../../hooks/use-base-component';
import { ExpandToViewport } from '../dropdown/interfaces';
interface AutosuggestInputProps extends BaseComponentProps, BaseInputProps, InputAutoCorrect, InputKeyEvents, InputClearLabel, FormFieldValidationControlProps, ExpandToViewport, InternalBaseComponentProps {
ariaControls?: string;
ariaActivedescendant?: string;
dropdownExpanded?: boolean;
dropdownContentKey?: string;
dropdownContentFocusable?: boolean;
dropdownContent?: React.ReactNode;
dropdownFooter?: React.ReactNode;
dropdownWidth?: number;
loopFocus?: boolean;
onCloseDropdown?: NonCancelableEventHandler<null>;
onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>;
onPressArrowDown?: () => void;
onPressArrowUp?: () => void;
onPressEnter?: () => boolean;
}
interface AutosuggestInputFocusOptions {
preventDropdown?: boolean;
}
export interface AutosuggestInputRef extends AutosuggestProps.Ref {
focus(options?: AutosuggestInputFocusOptions): void;
open(): void;
close(): void;
}
declare const AutosuggestInput: React.ForwardRefExoticComponent<AutosuggestInputProps & React.RefAttributes<AutosuggestInputRef>>;
export default AutosuggestInput;
//# sourceMappingURL=index.d.ts.map