| 1234567891011121314151617181920 |
- import React from 'react';
- import { RenderFunction } from '@storybook/react';
- const RightAlignedStory: React.FunctionComponent<{}> = ({ children }) => {
- return (
- <div
- style={{
- height: '100vh ',
- display: 'flex',
- alignItems: 'flex-start',
- justifyContent: 'flex-end',
- marginRight: '20px',
- }}
- >
- {children}
- </div>
- );
- };
- export const withRighAlignedStory = (story: RenderFunction) => <RightAlignedStory>{story()}</RightAlignedStory>;
|