UUUUPPPPP work

This commit is contained in:
2026-03-25 02:03:59 +01:00
parent c857900860
commit df8bd891a2
32 changed files with 1126 additions and 233 deletions

27
components_/Checkbox.js Normal file
View File

@@ -0,0 +1,27 @@
import { $ html } from "sigpro";
$.component(
"c-check",
(props, host) => {
return html`
<label class="label cursor-pointer flex gap-2">
<input
type="checkbox"
@change="${(e) => {
e.stopPropagation();
emit("change", e.target.checked);
}}"
.checked="${() => props.checked()}"
.disabled="${() => props.disabled()}"
class="${cls(props.toggle ? "toggle" : "checkbox")}" />
${() =>
props.label
? html`
<span class="label-text">${props.label}</span>
`
: ""}
</label>
`;
},
["checked", "label", "class", "disabled", "toggle"],
);