Skip to content

[Feature]: allow to pass autofocus attribute to SfInputΒ #3110

@Baroshem

Description

@Baroshem

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 autofocus prop that behaves just like a normal input html element
  • When autofocus is true, input should get automatic focus when it loads

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions