mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
49 lines
767 B
TypeScript
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',
|
|
};
|