-
Notifications
You must be signed in to change notification settings - Fork 2
/
ComboBox.stories.tsx
57 lines (47 loc) · 1.12 KB
/
ComboBox.stories.tsx
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
import type { Meta, StoryObj } from '@storybook/react';
import ComboBox from '@renderer/components/papi-components/ComboBox';
const meta: Meta<typeof ComboBox> = {
title: 'Basics/ComboBox',
component: ComboBox,
tags: ['autodocs'],
argTypes: {
title: { control: 'text' },
isDisabled: { control: 'boolean' },
hasError: { control: 'boolean' },
isFullWidth: { control: 'boolean' },
options: { control: 'text' },
className: { control: 'text' },
},
};
export default meta;
type Story = StoryObj<typeof ComboBox>;
export const Default: Story = {
args: {},
};
export const Disabled: Story = {
args: { isDisabled: true },
};
export const ErrorState: Story = {
args: { hasError: true },
};
export const FullWidth: Story = {
args: { isFullWidth: true },
};
export const Title: Story = {
args: { title: 'Combo box' },
};
export const Placeholder: Story = {
args: {
options: ['Option 1', 'Option2', 'Option3'],
},
};
export const Paratext: Story = {
args: {
className: ['paratext'],
},
};
export const ParatextBright: Story = {
args: {
className: ['paratext', 'bright'],
},
};