@spaethtech/svelte-ui 0.18.1-dev.90.ca4ea8f → 0.18.1-dev.91.ef0fb72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/components.md
CHANGED
|
@@ -295,6 +295,9 @@ Thin wrappers over `Input`, each preconfigured with an MDI icon (rendered into I
|
|
|
295
295
|
|
|
296
296
|
- **Location**: `src/lib/components/PasswordInput.svelte`
|
|
297
297
|
- **Features**: built-in visibility toggle (eye / eye-off MDI icons)
|
|
298
|
+
- **`autocomplete`**: defaults to `"new-password"` (clears Chrome's "should have autocomplete"
|
|
299
|
+
advisory and stops unrelated saved-credential autofill). Overridable per usage — a login field
|
|
300
|
+
passes `autocomplete="current-password"` and it wins (spread after the default).
|
|
298
301
|
|
|
299
302
|
### EmailInput
|
|
300
303
|
|
package/docs/usage.md
CHANGED
|
@@ -1038,7 +1038,9 @@ A likeness with a fallback chain (image → initials → icon → glyph). `Avata
|
|
|
1038
1038
|
let quantity = $state(1);
|
|
1039
1039
|
</script>
|
|
1040
1040
|
|
|
1041
|
+
<!-- autocomplete defaults to "new-password"; override for a login field: -->
|
|
1041
1042
|
<PasswordInput bind:value={password} placeholder="Enter password" />
|
|
1043
|
+
<PasswordInput bind:value={password} autocomplete="current-password" placeholder="Password" />
|
|
1042
1044
|
<EmailInput bind:value={email} required placeholder="user@example.com" />
|
|
1043
1045
|
<SearchInput bind:value={search} placeholder="Search..." />
|
|
1044
1046
|
<NumberInput bind:value={quantity} min={1} max={100} />
|