aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PasswordInput.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-28 08:04:46 -0800
committerAdam Soltys <[email protected]>2024-11-28 08:04:46 -0800
commit33a57750f6d7aab8feb83fe4d225b39d09dc59f1 (patch)
tree1cf3067d057a8d6c1be3bb89f96ee9deaa8ab05d /src/components/PasswordInput.svelte
parent957244a594fa19b3ae1d686cd827102fbc788db9 (diff)
downloadcoinos-ui-33a57750f6d7aab8feb83fe4d225b39d09dc59f1.tar.gz
coinos-ui-33a57750f6d7aab8feb83fe4d225b39d09dc59f1.zip
currency locale
Diffstat (limited to 'src/components/PasswordInput.svelte')
-rw-r--r--src/components/PasswordInput.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/PasswordInput.svelte b/src/components/PasswordInput.svelte
index eb5b0d6c..483b473d 100644
--- a/src/components/PasswordInput.svelte
+++ b/src/components/PasswordInput.svelte
@@ -1,5 +1,6 @@
<script>
let {
+ name = $bindable("password"),
show = $bindable(),
value = $bindable(),
focus = () => {},
@@ -14,10 +15,10 @@
class="input flex items-center justify-center gap-2 w-full"
>
{#if show}
- <input name="password" type="text" bind:value class="clean" {placeholder} />
+ <input {name} type="text" bind:value class="clean" {placeholder} />
{:else}
<input
- name="password"
+ {name}
type="password"
bind:value
class="clean"