import { Meta, Story, ArgsTable, Canvas } from '@storybook/addon-docs/blocks';
import { FieldLabel } from './field-label.component';
import { FlowPropsTable, ExternalReferenceLink } from '../../../utils';

<Meta title="Field Label" component={FieldLabel} />

# Field Label

The FieldLabel component renders a string with styles that can be used for labeling form elements.

It mimicks the Section Header but is functionally a `<label>`

## Default

<Canvas withToolbar>
  <Story id="field-label--default" />
</Canvas>

## Supported Layout Props

### Spacing

<Preview withToolbar>
  <Story id="field-label--mixins-spacing" />
</Preview>

### Stackee

<Preview withToolbar>
  <Story id="field-label--mixins-stackee" />
</Preview>

## Props

<FlowPropsTable ofComponent={FieldLabel} />

## External Reference

<ExternalReferenceLink src="" type="figma" />
<ExternalReferenceLink
  src="https://github.com/wealthsimple/patchwork/tree/master/core/typography/field-label"
  type="github"
/>
