Skip to content

Commit a5006f0

Browse files
author
Asgator
committed
Checkbox: update examples - props 'type'
1 parent 785f4b1 commit a5006f0

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/components/modules/checkbox/examples/disabled.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class MyCheckboxes extends React.Component {
3838
<Field>
3939
<Checkbox
4040
disabled
41-
radio
41+
type="radio"
4242
checked={isRadio}
4343
onClick={this.onClickCheckbox.bind(this, 'isRadio')}
4444
>
@@ -48,7 +48,7 @@ class MyCheckboxes extends React.Component {
4848
<Field>
4949
<Checkbox
5050
disabled
51-
slider
51+
type="slider"
5252
checked={isSlider}
5353
onClick={this.onClickCheckbox.bind(this, 'isSlider')}
5454
>
@@ -58,7 +58,7 @@ class MyCheckboxes extends React.Component {
5858
<Field>
5959
<Checkbox
6060
disabled
61-
toggle
61+
type="toggle"
6262
checked={isToggle}
6363
onClick={this.onClickCheckbox.bind(this, 'isToggle')}
6464
>

src/components/modules/checkbox/examples/radios.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class MyRadios extends React.Component {
2828
<label>Omg bananas!</label>
2929
<Field>
3030
<Checkbox
31-
radio
31+
type="radio"
3232
checked={value === 'one'}
3333
onClick={this.onClickRadio.bind(this, 'one')}
3434
>
@@ -37,7 +37,7 @@ class MyRadios extends React.Component {
3737
</Field>
3838
<Field>
3939
<Checkbox
40-
radio
40+
type="radio"
4141
checked={value === 'two'}
4242
onClick={this.onClickRadio.bind(this, 'two')}
4343
>

src/components/modules/checkbox/examples/read-only.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class MyCheckboxes extends React.Component {
3838
<Field>
3939
<Checkbox
4040
readOnly
41-
radio
41+
type="radio"
4242
checked={isRadio}
4343
onClick={this.onClickCheckbox.bind(this, 'isRadio')}
4444
>
@@ -48,7 +48,7 @@ class MyCheckboxes extends React.Component {
4848
<Field>
4949
<Checkbox
5050
readOnly
51-
slider
51+
type="slider"
5252
checked={isSlider}
5353
onClick={this.onClickCheckbox.bind(this, 'isSlider')}
5454
>
@@ -58,7 +58,7 @@ class MyCheckboxes extends React.Component {
5858
<Field>
5959
<Checkbox
6060
readOnly
61-
toggle
61+
type="toggle"
6262
checked={isToggle}
6363
onClick={this.onClickCheckbox.bind(this, 'isToggle')}
6464
>

src/components/modules/checkbox/examples/types.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class MyCheckboxes extends React.Component {
3636
</Field>
3737
<Field>
3838
<Checkbox
39-
radio
39+
type="radio"
4040
checked={isRadio}
4141
onClick={this.onClickCheckbox.bind(this, 'isRadio')}
4242
>
@@ -45,7 +45,7 @@ class MyCheckboxes extends React.Component {
4545
</Field>
4646
<Field>
4747
<Checkbox
48-
slider
48+
type="slider"
4949
checked={isSlider}
5050
onClick={this.onClickCheckbox.bind(this, 'isSlider')}
5151
>
@@ -54,7 +54,7 @@ class MyCheckboxes extends React.Component {
5454
</Field>
5555
<Field>
5656
<Checkbox
57-
toggle
57+
type="toggle"
5858
checked={isToggle}
5959
onClick={this.onClickCheckbox.bind(this, 'isToggle')}
6060
>

0 commit comments

Comments
 (0)