Container fixes
This commit is contained in:
parent
2b845e708d
commit
40a8a3ab44
@ -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>
|
||||||
);
|
);
|
||||||
//
|
//
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user