integrate sigproui

This commit is contained in:
2026-03-18 23:23:39 +01:00
parent a070ceb3d4
commit e555dc5734
66 changed files with 29670 additions and 156 deletions

24
UI/components/Range.js Normal file
View File

@@ -0,0 +1,24 @@
import { $, html } from "sigpro";
$.component(
"c-range",
(props, { emit }) => {
return html`
<input
type="range"
.min=${() => props.min() ?? 0}
.max=${() => props.max() ?? 100}
.step=${() => props.step() ?? 1}
.value=${() => props.value()}
.class=${() => `range ${props.ui() ?? ""}`}
@input=${(e) => {
const val = e.target.value;
if (typeof props.value === "function") props.value(val);
emit("input", val);
emit("change", val);
}} />
`;
},
["ui", "value", "min", "max", "step"],
);