import {
    Meta,
    Description,
    Controls,
    Canvas,
} from '@storybook/addon-docs/blocks'
import * as CheckboxGroupStories from './Checkbox.stories'

<Meta title="pv-form/Components/Checkbox" />

# Checkbox

<Description of={CheckboxGroupStories} />

<Canvas of={CheckboxGroupStories.Default} />

## CheckboxGroup Props

<Controls of={CheckboxGroupStories.Default} />

## Checkbox Props

This is a re-exported control `@planview/pv-uikit` with the `size` default changed to `small`. Please see [the uikit Checkbox page](/docs/pv-uikit-checkbox--docs) for the list of props.

## Label to the left

<Canvas of={CheckboxGroupStories.LabelToTheLeft} />

## Horizontal orientation

<Canvas of={CheckboxGroupStories.OrientationHorizontal} />

## Label to the left and horizontal orientation

<Canvas of={CheckboxGroupStories.LabelToTheLeftAndOrientationHorizontal} />

## With error

<Canvas of={CheckboxGroupStories.WithError} />

## With warning

<Canvas of={CheckboxGroupStories.WithWarning} />
