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

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

# Radio

<Description of={RadioGroupStories} />

<Canvas of={RadioGroupStories.Default} />

## RadioGroup Props

<Controls of={RadioGroupStories.Default} />

## Radio Props

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

## Label to the left

<Canvas of={RadioGroupStories.LabelToTheLeft} />

## Horizontal orientation

<Canvas of={RadioGroupStories.OrientationHorizontal} />

## Label to the left and horizontal orientation

<Canvas of={RadioGroupStories.LabelToTheLeftAndOrientationHorizontal} />

## With error

<Canvas of={RadioGroupStories.WithError} />

## With warning

<Canvas of={RadioGroupStories.WithWarning} />
