Files
n8n-enterprise-unlocked/packages/frontend/@n8n/design-system/src/components/N8nIcon/Icon.stories.ts

49 lines
767 B
TypeScript

import type { StoryFn } from '@storybook/vue3';
import N8nIcon from './Icon.vue';
export default {
title: 'Atoms/Icon',
component: N8nIcon,
argTypes: {
icon: {
control: 'text',
},
size: {
control: {
type: 'select',
},
options: ['xsmall', 'small', 'medium', 'large'],
},
spin: {
control: {
type: 'boolean',
},
},
},
};
const Template: StoryFn = (args, { argTypes }) => ({
setup: () => ({ args }),
props: Object.keys(argTypes),
components: {
N8nIcon,
},
template: '<n8n-icon v-bind="args" />',
});
export const Clock = Template.bind({});
Clock.args = {
icon: 'clock',
};
export const Plus = Template.bind({});
Plus.args = {
icon: 'plus',
};
export const Stop = Template.bind({});
Stop.args = {
icon: 'stop',
};