first commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// Toggle switch (an accessible checkbox styled as a switch).
|
||||
component Switch {
|
||||
props {
|
||||
name = ""
|
||||
label = ""
|
||||
class = ""
|
||||
}
|
||||
view {
|
||||
<label class="wire-switch {class}">
|
||||
<input type="checkbox" name="{name}" class="wire-switch__input" role="switch">
|
||||
<span class="wire-switch__track"><span class="wire-switch__thumb"></span></span>
|
||||
<span class="wire-switch__label"><slot>{label}</slot></span>
|
||||
</label>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user