12 lines
344 B
Plaintext
12 lines
344 B
Plaintext
// 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>
|
|
}
|
|
}
|