aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PasswordInput.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
committerAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
commit56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch)
treed6bc2557c56b93177bb14aa376847c6e123a4862 /src/components/PasswordInput.svelte
parent13466248004327e9a026cb89f94926f9b060d1c1 (diff)
downloadcoinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz
coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip
format
Diffstat (limited to 'src/components/PasswordInput.svelte')
-rw-r--r--src/components/PasswordInput.svelte14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/components/PasswordInput.svelte b/src/components/PasswordInput.svelte
index 3f784290..8d16aad6 100644
--- a/src/components/PasswordInput.svelte
+++ b/src/components/PasswordInput.svelte
@@ -15,21 +15,11 @@
let icon = $derived(show ? "ph:eye-bold" : "ph:eye-slash-bold");
</script>
-<label
- for="password"
- class="input flex items-center justify-center gap-2 w-full"
->
+<label for="password" class="input flex items-center justify-center gap-2 w-full">
{#if show}
<input {name} type="text" bind:value class="clean" {placeholder} />
{:else}
- <input
- {name}
- type="password"
- bind:value
- class="clean"
- use:focus
- {placeholder}
- />
+ <input {name} type="password" bind:value class="clean" use:focus {placeholder} />
{/if}
<button type="button" aria-label="Toggle" onclick={toggle} class="contents">
<iconify-icon noobserver {icon} width="32"></iconify-icon>