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'] },
darknessTheme: { 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
args: {},
} satisfies Meta<typeof MenuDial>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Primary: Story = {
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',
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
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',