first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// Theme switch button. The framework's theme runtime binds the click
|
||||
// (data-wire-theme-toggle), so no component JS is needed.
|
||||
component ThemeToggle {
|
||||
props {
|
||||
label = "Toggle theme"
|
||||
class = ""
|
||||
}
|
||||
view {
|
||||
<button type="button" class="wire-btn wire-btn--ghost {class}" data-wire-theme-toggle><slot>{label}</slot></button>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user