Skip to content

Commit 24be976

Browse files
LucyChyzhovaKiarokh
authored andcommitted
docs(switch): use switches instead of checkboxes
1 parent 1fd865f commit 24be976

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

src/components/switch/examples/switch-helper-text.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ export class SwitchExampleHelperText {
3939
helperText={'Siri helps you get things done, just by asking.'}
4040
/>,
4141
<limel-example-controls>
42-
<limel-checkbox
43-
checked={this.disabled}
42+
<limel-switch
43+
value={this.disabled}
4444
label="Disabled"
4545
onChange={this.setDisabled}
4646
/>
47-
<limel-checkbox
48-
checked={this.readonly}
47+
<limel-switch
48+
value={this.readonly}
4949
label="Readonly"
5050
onChange={this.setReadonly}
5151
/>
52-
<limel-checkbox
53-
checked={this.invalid}
52+
<limel-switch
53+
value={this.invalid}
5454
label="Invalid"
5555
onChange={this.setInvalid}
5656
/>
57-
<limel-checkbox
58-
checked={this.value}
57+
<limel-switch
58+
value={this.value}
5959
label="Selected"
6060
onChange={this.setChecked}
6161
/>

src/components/switch/examples/switch-readonly.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,23 @@ export class SwitchReadonlyExample {
6363
invalid={this.invalid}
6464
/>,
6565
<limel-example-controls>
66-
<limel-checkbox
67-
checked={this.readonly}
66+
<limel-switch
67+
value={this.readonly}
6868
label="Readonly"
6969
onChange={this.setReadonly}
7070
/>
71-
<limel-checkbox
72-
checked={this.disabled}
71+
<limel-switch
72+
value={this.disabled}
7373
label="Disabled"
7474
onChange={this.setDisabled}
7575
/>
76-
<limel-checkbox
77-
checked={this.invalid}
76+
<limel-switch
77+
value={this.invalid}
7878
label="Invalid"
7979
onChange={this.setInvalid}
8080
/>
81-
<limel-checkbox
82-
checked={this.value}
81+
<limel-switch
82+
value={this.value}
8383
label="Selected"
8484
onChange={this.setSelected}
8585
/>

src/components/switch/examples/switch.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ export class SwitchExample {
2828
invalid={this.invalid}
2929
/>,
3030
<limel-example-controls>
31-
<limel-checkbox
32-
checked={this.disabled}
31+
<limel-switch
32+
value={this.disabled}
3333
label="Disabled"
3434
onChange={this.setDisabled}
3535
/>
36-
<limel-checkbox
37-
checked={this.readonly}
36+
<limel-switch
37+
value={this.readonly}
3838
label="Readonly"
3939
onChange={this.setReadonly}
4040
/>
41-
<limel-checkbox
42-
checked={this.invalid}
41+
<limel-switch
42+
value={this.invalid}
4343
label="Invalid"
4444
onChange={this.setInvalid}
4545
/>
46-
<limel-checkbox
47-
checked={this.value}
46+
<limel-switch
47+
value={this.value}
4848
label="Selected"
4949
onChange={this.setChecked}
5050
/>

0 commit comments

Comments
 (0)