UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

19 lines (18 loc) 824 B
import { BaseComponentProps } from '../internal/base-component'; import { BaseKeyDetail, CancelableEventHandler } from '../internal/events'; import { FormFieldValidationControlProps } from '../internal/context/form-field-context'; import { BaseChangeDetail, BaseInputProps } from './internal'; export interface InputProps extends BaseComponentProps, BaseInputProps, FormFieldValidationControlProps { autoComplete?: boolean; type?: InputProps.Type; onKeyDown?: CancelableEventHandler<InputProps.KeyDetail>; onKeyUp?: CancelableEventHandler<InputProps.KeyDetail>; } export declare namespace InputProps { type Type = 'text' | 'password' | 'search' | 'number' | 'email' | 'url'; type ChangeDetail = BaseChangeDetail; type KeyDetail = BaseKeyDetail; interface Ref { focus(): void; } }