You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Motivation
We want to be able to set `focus` on the `Input` component. Since
enabling `autofocus` is not recommended, we aim to make it possible to
bind the input element. This way, we can set the focus programmaticcly
and improve the user experience of our application.
# Changes
- enables to set focus on `Input` component
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/routes/(split)/components/input/+page.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ The input component is a wrapper to the HTML input element with custom styling a
34
34
|`showInfo`| Display additional information related to the input. Should be used in addition to slots. |`boolean`|`false`|
35
35
|`testId`| Add a `data-tid` attribute to the DOM, useful for test purpose. |`string` or `undefined`|`undefined`|
36
36
|`ignore1Password`| Tell 1Password it should ignore the field (Reference: 1Password [documentation](https://developer.1password.com/docs/web/compatible-website-design/)) |`boolean`|`true`|
37
+
|`inputElement`| HTML input element |`HTMLInputElement` or `undefined`|`undefined`|
0 commit comments