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',
export const Vertical: 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 Full2: 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',