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

17
components_/InputClear.js Normal file
View File

@@ -0,0 +1,17 @@
import { $, html } from "sigpro";
$.component(
"c-input-clear",
(props) => {
return html`
<button
type="button"
class="btn btn-ghost btn-xs btn-circle opacity-50 hover:opacity-100"
?hidden=${() => !props.value() || props.value().length === 0}
@click=${() => props.value("")}>
<span class="icon-[lucide--x] size-4"></span>
</button>
`;
},
["value"],
);