Update new functions
This commit is contained in:
@@ -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),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user