Skip to content

Commit 5264da2

Browse files
committed
add story: license
1 parent 6a3a141 commit 5264da2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { Meta, StoryObj } from '@nuxtjs/storybook'
2+
import Component from './LicenseDisplay.vue'
3+
4+
const meta = {
5+
component: Component,
6+
tags: ['autodocs'],
7+
argTypes: {
8+
license: {
9+
control: { type: 'text' },
10+
},
11+
},
12+
} satisfies Meta<typeof Component>
13+
14+
export default meta
15+
type Story = StoryObj<typeof meta>
16+
17+
export const Default: Story = { args: { license: 'MIT' } }
18+
export const Invalid: Story = { args: { license: 'invalid license' } }

0 commit comments

Comments
 (0)