portainer/app/react/components/InsightsBox/InsightsBox.stories.tsx

19 lines
467 B
TypeScript

import { Meta, Story } from '@storybook/react';
import { InsightsBox, Props } from './InsightsBox';
export default {
component: InsightsBox,
header: 'Components/InsightsBox',
} as Meta;
function Template({ header, content }: Props) {
return <InsightsBox header={header} content={content} />;
}
export const Primary: Story<Props> = Template.bind({});
Primary.args = {
header: 'Insights box header',
content: 'This is the content of the insights box',
};