Docs Updated

This commit is contained in:
2026-04-03 01:41:07 +02:00
parent b0629ef3d0
commit 257107e198
42 changed files with 1529 additions and 6255 deletions

View File

@@ -15,7 +15,12 @@ export const Swap = (props) => {
return $html("label", { ...rest, class: ui('swap', className) }, [
$html("input", {
type: "checkbox",
checked: val(value)
checked: () => val(value), // ← FUNCIÓN: se reevalúa cuando la señal cambia
onclick: (e) => {
if (typeof value === "function") {
value(e.target.checked);
}
}
}),
$html("div", { class: "swap-on" }, on),
$html("div", { class: "swap-off" }, off),