forked from npmx-dev/npmx.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBase.stories.ts
More file actions
60 lines (51 loc) · 1013 Bytes
/
Base.stories.ts
File metadata and controls
60 lines (51 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import type { Meta, StoryObj } from '@storybook-vue/nuxt'
import Component from './Base.vue'
const meta = {
component: Component,
} satisfies Meta<typeof Component>
export default meta
type Story = StoryObj<typeof meta>
export const Primary: Story = {
args: {
default: 'Primary Button',
},
}
export const Secondary: Story = {
args: {
default: 'Secondary Button',
variant: 'secondary',
},
}
export const Small: Story = {
args: {
default: 'Small Button',
size: 'small',
variant: 'secondary',
},
}
export const Disabled: Story = {
args: {
default: 'Disabled Button',
disabled: true,
},
}
export const WithIcon: Story = {
args: {
default: 'Search',
classicon: 'i-lucide:search',
variant: 'secondary',
},
}
export const WithKeyboardShortcut: Story = {
args: {
ariaKeyshortcuts: '/',
default: 'Search',
variant: 'secondary',
},
}
export const Block: Story = {
args: {
block: true,
default: 'Full Width Button',
},
}