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

37 lines (36 loc) 1.45 kB
import React from 'react'; import { IconProps } from '../icon'; import { NonCancelableEventHandler } from '../internal/events'; import { InputProps } from './interfaces'; import { BaseComponentProps } from '../internal/base-component'; import { FormFieldValidationControlProps } from '../internal/context/form-field-context'; export interface BaseInputProps { value: string; name?: string; placeholder?: string; disabled?: boolean; readOnly?: boolean; autoFocus?: boolean; disableBrowserAutocorrect?: boolean; ariaLabel?: string; ariaRequired?: boolean; onBlur?: NonCancelableEventHandler<null>; onFocus?: NonCancelableEventHandler<null>; onChange?: NonCancelableEventHandler<InputProps.ChangeDetail>; } export interface BaseChangeDetail { value: string; } export interface InternalInputProps extends BaseComponentProps, BaseInputProps, InputProps, FormFieldValidationControlProps { leftIcon?: IconProps['name']; leftIconVariant?: IconProps['variant']; onLeftIconClick?: () => void; rightIcon?: IconProps['name']; rightIconVariant?: IconProps['variant']; onRightIconClick?: () => void; nativeAttributes?: Record<string, any>; noBorderRadius?: boolean; onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>; } declare const _default: React.ForwardRefExoticComponent<InternalInputProps & React.RefAttributes<HTMLInputElement>>; export default _default;