diff --git a/src/components/Column/Column.stories.tsx b/src/components/Column/Column.stories.tsx index c34dfcd..d5be0c8 100644 --- a/src/components/Column/Column.stories.tsx +++ b/src/components/Column/Column.stories.tsx @@ -1,6 +1,7 @@ import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Email } from '../Email/Email'; +import { Section } from '../Section/Section'; import { Column } from './Column'; export default { @@ -10,16 +11,15 @@ export default { //“template” of how args map to rendering const Template: ComponentStory = (args) => ( - +
+ +
); export const Default = Template.bind({}); Default.args = { - // children: ( - // - // Hello World - // - // ), + children:

Hello World

, + align: 'center', }; diff --git a/src/components/Column/Column.tsx b/src/components/Column/Column.tsx index 4c3b721..4e5dc0a 100644 --- a/src/components/Column/Column.tsx +++ b/src/components/Column/Column.tsx @@ -4,11 +4,17 @@ export interface ColumnProps { children?: ReactNode; className?: string; style?: CSSProperties; + align?: 'left' | 'center' | 'right'; } -export const Column = ({ children, className, style }: ColumnProps): JSX.Element => { +export const Column = ({ + children, + className, + style, + align = 'left', +}: ColumnProps): JSX.Element => { return ( - + {children} );