storefront-ui
storefront-ui copied to clipboard
[Feature]: allow to pass `autofocus` attribute to SfInput
What package of StorefrontUI can be affected by this change?
all
How the project can be improved?
It would be useful to have an autofocus attribute to the SfInput component so that when passed, the input would get automatic focus when page / component loads
https://www.w3schools.com/tags/att_input_autofocus.asp
What are the acceptance criteria?
- [ ] SfInput accepts
autofocusprop that behaves just like a normal input html element - [ ] When
autofocusis true, input should get automatic focus when it loads
Additional information
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct