Newer
Older
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
import type { Meta, StoryObj } from '@storybook/vue3';
import Cropper from './Cropper.vue';
const meta: Meta = {
title: 'Components/Cropper',
component: Cropper,
tags: ['pick'],
parameters: {
docs: {
description: {
component: 'A component to pick color. Can be with button.',
},
},
},
argTypes: {
buttonProps: { control: 'object' },
sameButtonColor: { control: 'boolean' },
disabled: { control: 'boolean' },
size: { control: 'select', options: ['small', 'normal', 'large', 'huge'] },
},
} satisfies Meta<typeof Cropper>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Simple: Story = {
args: {},
};
export const Full: Story = {
args: {
buttonProps: {
label: 'Pick color!',
theme: 'red',
textStyle: 'bold',
},
size: 'large',
sameButtonColor: true,
},
};