Skip to content

Add support for id property #997

Open
@felipecarrillo100

Description

Most HTML controls have a property called id. This id is a unique identifier that identifies the element.
The id is also used to associate a label with an input. For instance,

Name

Under this situation if the user clicks on the label, the input is selected, input gains focus and handle keyboard events.

Unfortunately your component does not support the id property, therefore, it is not possible to associate a label to it.

Could you please add a prop id to your component? It would be a great accessibility improvement and I believe it would be very easy to do
Thanks in advance

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions