mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 01:26:44 +00:00
* ensure that eslint runs on all frontend code * remove tslint from `design-system` * enable prettier and eslint-prettier for `design-system` * Delete tslint.json * use a single editorconfig for the repo * enable prettier for all code in `design-system` * more linting fixes on design-system * ignore coverage for git and prettier * lintfix on editor-ui
28 lines
517 B
JavaScript
28 lines
517 B
JavaScript
import N8nBadge from './Badge.vue';
|
|
|
|
export default {
|
|
title: 'Atoms/Badge',
|
|
component: N8nBadge,
|
|
argTypes: {
|
|
theme: {
|
|
type: 'text',
|
|
options: ['default', 'primary', 'secondary', 'tertiary'],
|
|
},
|
|
size: {
|
|
type: 'select',
|
|
options: ['small', 'medium', 'large'],
|
|
},
|
|
},
|
|
};
|
|
|
|
const Template = (args, { argTypes }) => ({
|
|
props: Object.keys(argTypes),
|
|
components: {
|
|
N8nBadge,
|
|
},
|
|
template: '<n8n-badge v-bind="$props">Badge</n8n-badge>',
|
|
});
|
|
|
|
export const Badge = Template.bind({});
|
|
Badge.args = {};
|