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

<Meta title="Components/LayoutContainersBox" component={Box} />

# Box

Box is an empty layout container. You can use it to group together components and control their layout with each other.

See the System/Layout section for more information.

In addition, `Box` lets you apply background colours.

## Stories

### With Background Color

<Canvas>
  <Story id="components-layout-containers-box--background-color" />
</Canvas>

## Supported Property Mixins

Spacing:

<Canvas>
  <Story id="components-layout-containers-box--mixins-spacing" />
</Canvas>

Stacked:

<Canvas>
  <Story id="components-layout-containers-box--mixins-stacked" />
</Canvas>

Stackee:

<Canvas>
  <Story id="components-layout-containers-box--mixins-stackee" />
</Canvas>

## Props

<FlowPropsTable ofComponent={Box} />

## External Reference

<ExternalReferenceLink
  src="https://github.com/wealthsimple/patchwork/tree/master/primitives/box"
  type="github"
/>
