wisemapping-frontend/packages/mindplot/storybook/src/stories/Connection.stories.ts

36 lines
806 B
TypeScript
Raw Normal View History

2023-02-17 22:25:57 +01:00
import { Story, Meta } from '@storybook/html';
import createConnection, { TopicArgs } from './Connection';
export default {
title: 'Mindplot/Connection',
// More on argTypes: https://storybook.js.org/docs/html/api/argtypes
argTypes: {
shapeType: {
options: ['none', 'rectangle', 'rounded rectangle', 'elipse', 'line'],
control: { type: 'select' },
},
},
} as Meta;
const Template: Story<TopicArgs> = (args: TopicArgs) => createConnection(args);
export const Classic = Template.bind({});
Classic.args = {
theme: 'classic',
};
export const Prism = Template.bind({});
Prism.args = {
theme: 'prism',
};
export const DarkPrism = Template.bind({});
DarkPrism.args = {
theme: 'dark-prism',
};
2023-03-01 01:54:30 +01:00
export const robot = Template.bind({});
DarkPrism.args = {
theme: 'robot',
};