import * as React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import Row, { Col } from './Row'; export default { title: '3.Layout/Row', component: Row, subcomponents: { Col }, } as ComponentMeta; const Template: ComponentStory = (args) => ( {args.children} ); const basicColStyling = { width: '100%', backgroundColor: 'rgba(0,146,255,.75)', height: '50px', color: 'white', display: 'flex', alignItems: 'center', justifyContent: 'center', }; const basicStylingSecondShade = { width: '100%', backgroundColor: '#0092ff', height: '50px', color: 'white', display: 'flex', alignItems: 'center', justifyContent: 'center', }; export const RowComponent = Template.bind({}); RowComponent.args = { alignItems: 'center', justifyItems: 'center', xs: 8, sm: 16, md: 24, lg: 24, children: ( <>
Col 24
Row Col 12
Row Col 12
Row Col 8
Row Col 8
Row Col 8
Row Col 6
Row Col 6
Row Col 6
Row Col 6
), }; export const CustomBreakpoints = Template.bind({}); CustomBreakpoints.args = { alignItems: 'center', justifyItems: 'center', xs: 8, sm: 16, md: 24, lg: 24, children: ( <>
Col 24
Row Col 12
Col 24
Row Col 12
), }; export const JustifyContent = Template.bind({}); JustifyContent.args = { children: ( <>

Flex Start

Flex Start
Flex Start
Flex Start

Flex End

Flex End
Flex End
Flex End

Center

Center
Center
Center

Space Evenly

Space Evenly
Space Evenly
Space Evenly

Space Between

Space Between
Space Between
Space Between

Space Around

Space Arround
Space Arround
Space Arround
), }; export const AlignStyles = Template.bind({}); AlignStyles.args = { children: ( <>

Align Start

Align Start
Align Start
Align Start

Align End

Align End
Align End
Align End

Align Center

Align Center
Align Center
Align Center

Align Baseline

Align Baseline
Align Baseline
Align Baseline
), }; export const OrderedColumns = Template.bind({}); OrderedColumns.args = { children: ( <>
Position 1, Order 5
Position 2, Order 3
Position 3, Order 2
Position 4, Order 1
), };