Skip to content

Commit

Permalink
[add]入力フォーム関連(Link,Loading,MultiSelect,Radio,Select,Textarea)#856
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryotakobayash authored and Kubosaka committed Jul 27, 2024
1 parent 025cdfb commit 3ab6e56
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 0 deletions.
18 changes: 18 additions & 0 deletions view/next-project/src/stories/common/Link.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Meta } from '@storybook/react';
import { Link } from '@components/common';

const meta: Meta<typeof Link> = {
title: 'FinanSu/common/Link',
component: Link,
tags: ['autodocs'],
argTypes: {},
};

export default meta;

export const Primary = {
args: {
className: 'm-10',
children: <h1>children</h1>,
},
};
17 changes: 17 additions & 0 deletions view/next-project/src/stories/common/Loading.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Meta } from '@storybook/react';
import { Loading } from '@components/common';

const meta: Meta<typeof Loading> = {
title: 'FinanSu/common/Loading',
component: Loading,
tags: ['autodocs'],
argTypes: {},
};

export default meta;

export const Primary = {
args: {
text: '読み込み中',
},
};
27 changes: 27 additions & 0 deletions view/next-project/src/stories/common/MultiSelect.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Meta } from '@storybook/react';
import { MultiSelect } from '@components/common';

const meta: Meta<typeof MultiSelect> = {
title: 'FinanSu/common/MultiSelect',
component: MultiSelect,
tags: ['autodocs'],
argTypes: {},
};

export default meta;

export const Primary = {
args: {
options: [
{
value: 'value1',
label: 'label1',
},
{
value: 'value2',
label: 'label2',
},
],
placeholder: 'placeholder',
},
};
15 changes: 15 additions & 0 deletions view/next-project/src/stories/common/Radio.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Meta } from '@storybook/react';
import { Radio } from '@components/common';

const meta: Meta<typeof Radio> = {
title: 'FinanSu/common/Radio',
component: Radio,
tags: ['autodocs'],
argTypes: {},
};

export default meta;

export const Primary = {
args: {},
};
20 changes: 20 additions & 0 deletions view/next-project/src/stories/common/Select.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Meta } from '@storybook/react';
import { Select } from '@components/common';

const meta: Meta<typeof Select> = {
title: 'FinanSu/common/Select',
component: Select,
tags: ['autodocs'],
argTypes: {},
};

export default meta;

export const Primary = {
args: {
children: 'children',
placeholder: 'placeholder',
value: '0',
defaultValue: '1',
},
};
20 changes: 20 additions & 0 deletions view/next-project/src/stories/common/Textarea.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Meta } from '@storybook/react';
import { Textarea } from '@components/common';

const meta: Meta<typeof Textarea> = {
title: 'FinanSu/common/Textarea',
component: Textarea,
tags: ['autodocs'],
argTypes: {},
};

export default meta;

export const Primary = {
args: {
children: 'children',
placeholder: 'placeholder',
id: 'id',
value: 'サンプルテキストああああああああああああああああああ',
},
};

0 comments on commit 3ab6e56

Please sign in to comment.