Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for id property #997

Open
felipecarrillo100 opened this issue Jun 6, 2024 · 1 comment
Open

Add support for id property #997

felipecarrillo100 opened this issue Jun 6, 2024 · 1 comment

Comments

@felipecarrillo100
Copy link

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

@afc163
Copy link
Member

afc163 commented Jun 7, 2024

PR is welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants