Files
Dare2/components_/InputView.js
2026-03-25 02:03:59 +01:00

14 lines
392 B
JavaScript

import { $, html } from "sigpro";
$.component(
"c-input-view",
(props) => {
return html`
<button type="button" class="btn btn-ghost btn-xs btn-circle opacity-50 hover:opacity-100" @click=${() => props.show(!props.show())}>
<span class="${() => (props.show() ? "icon-[lucide--eye-off]" : "icon-[lucide--eye]")} size-4"></span>
</button>
`;
},
["show"],
);