import { Box } from '@mui/material';
import type { ComponentMeta } from '@storybook/react';
import FluidTypography, { type FluidTypographyProps } from '.';
interface Props extends FluidTypographyProps {
height?: string | number;
width?: string | number;
}
const FluidTypographyTemplate = ({
width = '900px',
height = '700px',
text,
variant
}: Props): JSX.Element => {
return (
);
};
export default {
argTypes: {
height: { control: 'text' },
text: { control: 'text' },
variant: { control: 'text' },
width: { control: 'text' }
},
component: FluidTypographyTemplate,
title: 'Fluid Typography'
} as ComponentMeta;
export const basic = FluidTypographyTemplate.bind({});
basic.args = {
text: 'Hello world'
};
export const with200pxWidth = FluidTypographyTemplate.bind({});
with200pxWidth.args = {
height: '50%',
text: 'Hello world',
width: '50%'
};
export const with20pxHeight = FluidTypographyTemplate.bind({});
with20pxHeight.args = {
height: '20px',
text: 'Hello world'
};
export const withLongText = FluidTypographyTemplate.bind({});
withLongText.args = {
text: 'This is a very long text becaaaaaaause it has a lot to sayyyyy !!!!!!!!'
};
export const withHeading5Variant = FluidTypographyTemplate.bind({});
withHeading5Variant.args = {
text: 'Hello world',
variant: 'h5'
};