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

Attaching a label to this when used as a select #159

Open
gaurav5430 opened this issue Jul 21, 2022 · 2 comments
Open

Attaching a label to this when used as a select #159

gaurav5430 opened this issue Jul 21, 2022 · 2 comments

Comments

@gaurav5430
Copy link

From the demo i can see that this can be used as a select, Select is a form element, which should support label, clicking on which would focus the select element.
in the current implementation, is there a way to attach a html label element to the select ?

@shirshendubhowmick
Copy link
Collaborator

With HTML label element for select do you mean something like this ?

<label for="select-input">Options</label>
<select id="select-input">
  <option value="1">Option 1</option>
  <option value="2">Option 2</option>
</select>

@gaurav5430
Copy link
Author

yes

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