Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paragon
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
paragon
Commits
e15b0282
Commit
e15b0282
authored
Jun 29, 2017
by
Sarah Fischmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding details to checkbox component
parent
715df3a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
src/CheckBox/CheckBox.stories.jsx
+27
-27
No files found.
src/CheckBox/CheckBox.stories.jsx
View file @
e15b0282
...
@@ -10,49 +10,49 @@ storiesOf('CheckBox', module)
...
@@ -10,49 +10,49 @@ storiesOf('CheckBox', module)
<
div
>
<
div
>
<
h1
>
CheckBox
</
h1
>
<
h1
>
CheckBox
</
h1
>
<
p
>
This is the basic checkbox that is default unchecked
</
p
>
<
p
>
This is the basic checkbox that is default unchecked
</
p
>
<
CheckBox
<
CheckBox
name=
"checkbox"
name=
"checkbox"
describedBy=
"checkbox"
describedBy=
"checkbox"
label=
"check me out!"
label=
"check me out!"
checked=
"false"
checked=
"false"
/>
/>
</
div
>
</
div
>
))
))
.
add
(
'disabled'
,
()
=>
(
.
add
(
'disabled'
,
()
=>
(
<
div
>
<
div
>
<
h1
>
Disabled CheckBox
</
h1
>
<
h1
>
Disabled CheckBox
</
h1
>
<
p
>
This checkbox is disabled so it cannot be checked
</
p
>
<
p
>
This checkbox is disabled so it cannot be checked
</
p
>
<
CheckBox
<
CheckBox
name=
"checkbox"
name=
"checkbox"
describedBy=
"checkbox"
describedBy=
"checkbox"
label=
"you cannot check me out"
label=
"you cannot check me out"
checked=
"false"
checked=
"false"
disabled
disabled
/>
/>
</
div
>
</
div
>
))
))
.
add
(
'default checked'
,
()
=>
(
.
add
(
'default checked'
,
()
=>
(
<
div
>
<
div
>
<
h1
>
Selected CheckBox
</
h1
>
<
h1
>
Selected CheckBox
</
h1
>
<
p
>
The default state of this checkbox is checked
</
p
>
<
p
>
The default state of this checkbox is checked
</
p
>
<
CheckBox
<
CheckBox
name=
"checkbox"
name=
"checkbox"
describedBy=
"checkbox"
describedBy=
"checkbox"
label=
"(un)check me out"
label=
"(un)check me out"
checked=
"true"
checked=
"true"
/>
/>
</
div
>
</
div
>
))
))
.
add
(
'call a function'
,
()
=>
(
.
add
(
'call a function'
,
()
=>
(
<
div
>
<
div
>
<
h1
>
CheckBox with callback
</
h1
>
<
h1
>
CheckBox with callback
</
h1
>
<
p
>
This checkbox calls a function when it is either enabled or disabled
</
p
>
<
p
>
This checkbox calls a function when it is either enabled or disabled
</
p
>
<
CheckBox
<
CheckBox
name=
"checkbox"
name=
"checkbox"
describedBy=
"checkbox"
describedBy=
"checkbox"
label=
"check out the console"
label=
"check out the console"
checked=
"false"
checked=
"false"
onChange=
{
()
=>
console
.
log
(
'the checkbox changed state'
)
}
onChange=
{
()
=>
console
.
log
(
'the checkbox changed state'
)
}
/>
/>
</
div
>
</
div
>
));
));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment