import { SyntheticEvent } from 'react'; import { Property } from 'csstype'; import { BoxProps } from 'intergalactic/flex-box'; import { Intergalactic, UnknownProperties } from 'intergalactic/core'; import { WithAutoFocusEnhanceProps } from 'intergalactic/utils/lib/enhances/autoFocusEnhance'; /** @deprecated */ export interface ITextareaProps extends TextareaProps, UnknownProperties {} export type TextareaProps = BoxProps & WithAutoFocusEnhanceProps & { /** * Text value of textarea */ value?: string; /** * Default value if `value` property is not provided */ defaultValue?: string; /** Textarea size * @default m */ size?: 'm' | 'l' | false; /** The value responsible for the component state * @default normal */ state?: 'normal' | 'invalid' | 'valid' | false; /** Value responsible for resizing textarea * @default none */ resize?: Property.Resize | 'auto'; /** Value responsible for the minimum number of rows in recalculation * @default 2 * */ minRows?: number; /** Value responsible for the maximum number of rows in recalculation */ maxRows?: number; /** * Handler to change the value */ onChange?: (value: string, event: SyntheticEvent) => void; }; declare const Textarea: Intergalactic.Component<'textarea', TextareaProps>; export default Textarea;