-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e13735
commit ebc4b74
Showing
2 changed files
with
12 additions
and
7 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
import '@storybook/addon-knobs/register' | ||
import '@storybook/addon-viewport/register' | ||
// TODO:Storybookとemotionの相性問題により一時的にコメントアウトとするが、状況を見てfixする | ||
// import '@storybook/addon-knobs/register' | ||
// import '@storybook/addon-viewport/register' |
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
// import { color, withKnobs } from '@storybook/addon-knobs' | ||
import { storiesOf } from '@storybook/react' | ||
import SectionArea from './section-area' | ||
|
||
storiesOf('SectionArea', module).add('basic', () => ( | ||
<SectionArea color="blue"> | ||
<div>コンテンツ</div> | ||
</SectionArea> | ||
)) | ||
storiesOf('SectionArea', module) | ||
// .addDecorator(withKnobs) | ||
.add('basic', () => ( | ||
// <SectionArea color={color('color', 'blue')}> | ||
<SectionArea color="blue"> | ||
<div>コンテンツ</div> | ||
</SectionArea> | ||
)) |