Container fixes

This commit is contained in:
decamel 2022-08-01 12:05:53 +03:00
parent 2b845e708d
commit 40a8a3ab44
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,6 @@
import React from 'react'; import React from 'react';
import { ComponentMeta, ComponentStory } from '@storybook/react'; import { ComponentMeta, ComponentStory } from '@storybook/react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import Container from './Container'; import Container from './Container';
@ -24,7 +23,7 @@ export default {
* on a returning component. * on a returning component.
*/ */
const Template: ComponentStory<typeof Container> = (args) => ( const Template: ComponentStory<typeof Container> = (args) => (
<Container {...args}><div className='w-40 h-40 bg-yellow-400'>simple</div></Container> <Container {...args}><div className='h-40 bg-yellow-400 flex items-center justify-center uppercase font-bold'>simple</div></Container>
); );
// //
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */

View File

@ -1,14 +1,15 @@
import classNames from "classnames"; import classNames from "classnames";
import React from "react";
type Props = { type Props = {
/** /**
* Content of compnent * Content of component
*/ */
children: React.ReactNode; children: React.ReactNode;
/** /**
* Compnent styling * Component styling
*/ */
className?: string; className?: string;
} } & Omit<React.ComponentPropsWithoutRef<"div">, "">
/** /**
* Main container to handle page content max-width on * Main container to handle page content max-width on
* different screen sizes * different screen sizes