-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up
react-ts
example and addon-essentials for testing
- Loading branch information
Showing
4 changed files
with
10 additions
and
2 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,7 +1,9 @@ | ||
module.exports = { | ||
stories: ['./src/*.stories.*'], | ||
addons: ['@storybook/addon-essentials'], | ||
typescript: { | ||
check: true, | ||
checkOptions: {}, | ||
docgen: 'react-docgen', | ||
}, | ||
}; |
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
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,6 +1,8 @@ | ||
import React from 'react'; | ||
import { argsStory } from '@storybook/react'; | ||
import { Button } from './button'; | ||
|
||
export default { component: Button, title: 'Examples / Button' }; | ||
export default { component: Button, title: 'Examples/Button' }; | ||
|
||
export const SimpleButton = () => <Button label="Click me" />; | ||
export const WithArgs = argsStory({ label: 'With args' }); | ||
export const Basic = () => <Button label="Click me" />; |
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