// @flow
import React from 'react';
import { FieldLabel } from './field-label.component';
import { MarginChecker } from '../../../mixins/spacing/story-support/margin-checker';
import { PaddingChecker } from '../../../mixins/spacing/story-support/padding-checker';
import { StackeeChecker } from '../../../mixins/stackee/story-support/stackee-checker';
import docs from './field-label.mdx';

export default {
  component: FieldLabel,
  title: 'Components/Inputs/Field Label',
  parameters: {
    docs: {
      page: docs,
    },
  },
};

export const Default = () => <FieldLabel>Field label</FieldLabel>;

export const MixinsSpacing = () => (
  <>
    <MarginChecker Component={FieldLabel}>Field label</MarginChecker>
    <PaddingChecker Component={FieldLabel}>Field label</PaddingChecker>
  </>
);

export const MixinsStackee = () => (
  <StackeeChecker Component={FieldLabel}>Field label</StackeeChecker>
);
