UNPKG

@atlaskit/field-text-area

Version:
63 lines (59 loc) 1.7 kB
declare module '@atlaskit/field-text-area' { import { Component, FormEvent, FocusEvent } from 'react'; export interface FieldTextAreaStatelessProps { compact?: boolean; disabled?: boolean; isReadOnly?: boolean; required?: boolean; isInvalid?: boolean; label?: string; name?: string; placeholder?: string; value?: string | number; onBlur?: (event: FocusEvent<HTMLTextAreaElement>) => void; onChange?: (event: FormEvent<HTMLTextAreaElement>) => void; onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void; id?: string; isLabelHidden?: boolean; isMonospaced?: boolean; invalidMessage?: Node; shouldFitContainer?: boolean; isSpellCheckEnabled?: boolean; autoFocus?: boolean; maxLength?: number; minimumRows?: number; enableResize?: boolean | 'horizontal' | 'vertical'; type?: string; isValidationHidden?: boolean; } export interface FieldTextAreaProps { compact?: boolean; disabled?: boolean; isReadOnly?: boolean; required?: boolean; isInvalid?: boolean; label?: string; name?: string; placeholder?: string; value?: string | number; onChange?: any; id?: string; isLabelHidden?: boolean; isMonospaced?: boolean; invalidMessage?: Node; shouldFitContainer?: boolean; isSpellCheckEnabled?: boolean; autoFocus?: boolean; maxLength?: number; minimumRows?: number; enableResize?: boolean | 'horizontal' | 'vertical'; } export class FieldTextAreaStateless extends Component< FieldTextAreaStatelessProps, {} > {} export default class FieldTextArea extends Component< FieldTextAreaProps, {} > {} }