Skip to content

Commit a7ca4cc

Browse files
committed
allow switch type
1 parent 2b1593f commit a7ca4cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/views/components/switch/index.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
'checked' => false,
44
'required' => false,
55
'color' => 'emerald',
6+
'type' => 'checkbox',
67
])
78

8-
<input {!! $attributes->class(['el-switch']) !!} data-color="{{ $color }}" type="checkbox" @disabled($disabled)
9+
<input {!! $attributes->class(['el-switch']) !!} data-color="{{ $color }}" type="{{ $type }}" @disabled($disabled)
910
@checked($checked) @required($required)>

0 commit comments

Comments
 (0)