Skip to content

Commit

Permalink
Storybook: Add stories for Checkbox control component (#17891)
Browse files Browse the repository at this point in the history
* Add checkbox control stories for Storybook

* Update README example to match story, useState

* Apply suggestions from code review

👍

Co-Authored-By: Enrique Piqueras <epiqueras@users.noreply.github.com>

* Update story to match README

* Add variants for heading, label, help

* Update packages/components/src/checkbox-control/README.md

Co-Authored-By: Grzegorz (Greg) Ziółkowski <grzegorz@gziolo.pl>

* Add Knobs addon to Storybook

* Move storybook addon to dev-dependencies

* Solve lint dependency by excluding stories, dont need in package.json

* Apply suggestions from code review

Co-Authored-By: Enrique Piqueras <epiqueras@users.noreply.github.com>

* Update with story level decorators

* Switch back to global withKnobs, per story not working

* Change the name of the example in ChecboxControl story

* Try with the uppercase name of the component exported from stories
  • Loading branch information
mkaz authored and gziolo committed Oct 16, 2019
1 parent 2ea41bf commit 0ee2b78
Show file tree
Hide file tree
Showing 7 changed files with 704 additions and 256 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = {
'**/*.@(android|ios|native).js',
'**/benchmark/**/*.js',
'**/@(__mocks__|__tests__|test)/**/*.js',
'**/storybook/**/*.js',
'**/@(storybook|stories)/**/*.js',
],
},
{
Expand Down
Loading

0 comments on commit 0ee2b78

Please sign in to comment.