// @flow
import type { TranslatedContent } from '../../../types';
import type { MarginOnlySpaceProps } from '../../../mixins/spacing';
import type { StackeeProps } from '../../../mixins/stackee';
import type { StylableProps } from '../../../mixins/themes';
import type { TestingProps } from '../../../mixins/testing';
import type { FocusEvents } from '../../../mixins/focus';
import type { AriaProps } from '../../../mixins/aria';

export type TextAreaProps<ValueType> = {|
  ...TestingProps,
  ...StylableProps,
  ...MarginOnlySpaceProps,
  ...StackeeProps,
  ...FocusEvents,
  ...AriaProps,
  id?: string,
  placeholder?: ValueType,
  value?: ?ValueType,
  disabled?: boolean,
  focusOnMount?: boolean,
  label: TranslatedContent,
  hideLabel?: boolean,
  resize?: boolean,
  height?: string,
  onChange: (ValueType, SyntheticInputEvent<HTMLInputElement>) => void,
|};
