Update new functions

This commit is contained in:
2026-04-06 03:19:15 +02:00
parent f9095332eb
commit 294547fc56
139 changed files with 2249 additions and 2109 deletions

View File

@@ -1,13 +1,13 @@
import { $html } from "sigpro";
import { Tag } from "sigpro";
import { joinClass } from "../core/utils.js";
/** SWAP */
export const Swap = (props) =>
$html("label", { class: joinClass("swap", props.class) }, [
$html("input", {
Tag("label", { class: joinClass("swap", props.class) }, [
Tag("input", {
type: "checkbox",
checked: props.value
}),
$html("div", { class: "swap-on" }, props.on),
$html("div", { class: "swap-off" }, props.off),
Tag("div", { class: "swap-on" }, props.on),
Tag("div", { class: "swap-off" }, props.off),
]);