@axeptio/design-system
Version:
Design System for Axeptio
49 lines (40 loc) • 944 B
JSX
import React from 'react';
import Container from './index';
import { DecorativePattern } from 'src/helpers';
export default {
title: 'Core/Layout/Container',
component: Container
};
const Template = args => (
<>
<Container maxWidth="small">
<h6>small</h6>
<DecorativePattern />
</Container>
<Container maxWidth="medium">
<h6>medium</h6>
<DecorativePattern />
</Container>
<Container maxWidth="large">
<h6>large</h6>
<DecorativePattern />
</Container>
<Container maxWidth="xlarge">
<h6>xlarge</h6>
<DecorativePattern />
</Container>
<Container {...args}>
<h6>xxlarge (default)</h6>
<DecorativePattern />
</Container>
<Container maxWidth="xxxlarge">
<h6>xxxlarge</h6>
<DecorativePattern />
</Container>
</>
);
export const Default = Template.bind({});
Default.args = {
noPadding: false,
maxWidth: false
};