import { Meta, Story, ArgsTable, Canvas } from '@storybook/addon-docs/blocks';
import { TextArea } from './text-area.component';
import { FlowPropsTable, ExternalReferenceLink } from '../../../utils';

<Meta title="TextArea" component={TextArea} />

# Textarea

- [Form Input Accessibility
  Tips](/?path=/story/components-inputs-accessibility-tips--page)

A text input suitable for large blocks of text.

## Stories

### Default

<Canvas>
  <Story id="components-inputs-textarea--default" />
</Canvas>

### Fixed Height

<Canvas>
  <Story id="components-inputs-textarea--fixed-height" />
</Canvas>

### Hidden Label

<Canvas>
  <Story id="components-inputs-textarea--hidden-label" />
</Canvas>

### Disabled

<Canvas>
  <Story id="components-inputs-textarea--disabled" />
</Canvas>

### Focus on Mount

<Canvas>
  <Story id="components-inputs-textarea--focus-on-mount" />
</Canvas>

### Resizable

<Canvas>
  <Story id="components-inputs-textarea--resizable" />
</Canvas>

## Supported Property Mixins

Margin-only spacing:

<Canvas>
  <Story id="components-inputs-textarea--mixins-margin-only-spacing" />
</Canvas>

Stackee:

<Canvas>
  <Story id="components-inputs-textarea--mixins-stackee" />
</Canvas>

## Props

<FlowPropsTable ofComponent={TextArea} />

## External Reference

<ExternalReferenceLink
  src="https://www.figma.com/file/r5zKXblbSt0b869OEcOWXu/Patchwork-Web?node-id=637%3A66"
  type="figma"
/>
<ExternalReferenceLink
  src="https://github.com/wealthsimple/patchwork/tree/master/core/forms/textarea"
  type="github"
/>
