Newer
Older
import type { Meta, StoryObj } from '@storybook/vue3';
import MenuDial from './MenuDial.vue';
const meta: Meta = {
title: 'Components/MenuDial',
component: MenuDial,
tags: ['autodocs'],
parameters: {
docs: {
description: {
component: 'A component that represents a button with a drop-down list.',
},
},
},
argTypes: {
items: { control: 'object' },
size: { control: 'select', options: ['small', 'normal', 'large', 'huge'] },
direction: { control: 'select', options: ['up', 'down', 'left', 'right'] },

Дмитрий Малюгин
committed
darknessTheme: { control: 'select', options: ['100', '200', '300', '400', '500', '600', '700', '800', '900'] },
darknessIconColor: { control: 'select', options: ['100', '200', '300', '400', '500', '600', '700', '800', '900'] },
theme: {
control: 'select',
options: [
'white',
'blue',
'sky',
'cyan',
'teal',
'green',
'yellow',
'orange',
'pink',
'fuchsia',
'purple',
'indigo',
'rose',
'red',
'black',
],
},

Дмитрий Малюгин
committed
iconColor: {
control: 'select',
options: [
'white',
'blue',
'sky',
'cyan',
'teal',
'green',
'yellow',
'orange',
'pink',
'fuchsia',
'purple',
'indigo',
'rose',
'red',
'black',
],
},

Дмитрий Малюгин
committed
args: {},
} satisfies Meta<typeof MenuDial>;
export default meta;
type Story = StoryObj<typeof meta>;
args: {
items: [
{
label: 'First',
},
{
label: 'Second',
},
],
theme: 'white',
},
};
export const Full: Story = {
args: {
items: [
{

Дмитрий Малюгин
committed
label: 'font-family link',

Дмитрий Малюгин
committed
link: 'https://developer.mozilla.org/en-US/docs/Web/CSS/font-family',
linkBlank: true,

Дмитрий Малюгин
committed
textStyle: 'italic',
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
export const Down: Story = {
args: {
items: [
{
label: 'font-family link',
theme: 'green',
darknessTheme: 700,
link: 'https://developer.mozilla.org/en-US/docs/Web/CSS/font-family',
linkBlank: true,
},
{
label: 'Second',
theme: 'green',
darknessTheme: 800,
textStyle: 'italic',
},
],
theme: 'red',
darknessTheme: 700,
direction: 'down',
},
};
export const Huge: Story = {
args: {
items: [
{
label: 'font-family link',
theme: 'green',
darknessTheme: 700,
link: 'https://developer.mozilla.org/en-US/docs/Web/CSS/font-family',
linkBlank: true,
},
{
label: 'Second',
theme: 'green',
darknessTheme: 800,
textStyle: 'italic',
},
],
theme: 'red',
darknessTheme: 700,
direction: 'right',