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

31 lines (30 loc) 1.11 kB
import { BaseComponentProps } from '../internal/base-component'; import { CancelableEventHandler, BaseKeyDetail, NonCancelableEventHandler } from '../internal/events'; import { FormFieldValidationControlProps } from '../internal/context/form-field-context'; export interface TextareaProps extends BaseComponentProps, FormFieldValidationControlProps { value: string; name?: string; rows?: number; placeholder?: string; disabled?: boolean; readOnly?: boolean; autoComplete?: boolean; autoFocus?: boolean; disableBrowserAutocorrect?: boolean; ariaLabel?: string; ariaRequired?: boolean; onBlur?: NonCancelableEventHandler<void>; onFocus?: NonCancelableEventHandler<void>; onChange?: NonCancelableEventHandler<TextareaProps.ChangeDetail>; onKeyDown?: CancelableEventHandler<TextareaProps.KeyDetail>; onKeyUp?: CancelableEventHandler<TextareaProps.KeyDetail>; } export declare namespace TextareaProps { type KeyDetail = BaseKeyDetail; interface ChangeDetail { value: string; } interface Ref { focus(): void; } }