Skip to content

Commit

Permalink
feat(checkbox): add classes available to storybook
Browse files Browse the repository at this point in the history
Now on Inputs -> input.checkbox we can select the class `is-dark`.
  • Loading branch information
Ilyeo committed Feb 6, 2019
1 parent 9c4afae commit e33c77f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docs/inputs.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ stories.add('input.radio', () => `
<input type="radio" class="nes-radio" name="answer" />
<span>No</span>
</label>`)
.add('input.checkbox', () => `
<label>
<input type="checkbox" class="nes-checkbox" checked />
.add('input.checkbox', () => {
const selectedClass = radios('class', {
default: '',
'is-dark': 'is-dark',
}, '');

return (
`<label>
<input type="checkbox" class="nes-checkbox ${selectedClass}" checked />
<span>Enable</span>
</label>`)
</label>`
);
})
.add('input', () => {
const selectedClass = radios('class', {
default: '',
Expand Down

0 comments on commit e33c77f

Please sign in to comment.