-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add]入力フォーム関連(Link,Loading,MultiSelect,Radio,Select,Textarea)#856
- Loading branch information
1 parent
025cdfb
commit 3ab6e56
Showing
6 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
view/next-project/src/stories/common/MultiSelect.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 'サンプルテキストああああああああああああああああああ', | ||
}, | ||
}; |