import { Meta, StoryFn } from '@storybook/react-webpack5';
import { PageTitle } from './PageTitle';
export default {
component: PageTitle,
title: 'Components/PageHeader/PageTitle',
} as Meta;
interface StoryProps {
title: string;
}
function Template({ title }: StoryProps) {
return ;
}
export const Primary: StoryFn = Template.bind({});
Primary.args = {
title: 'Container details',
};
function WithChildrenTemplate({ title }: StoryProps) {
return (
additional content
);
}
export const WithChildren: StoryFn = WithChildrenTemplate.bind({});
WithChildren.args = {
title: 'Container details',
};