Skip to content

Associate an id with each item listed in a Select component? #1837

Answered by rtivital
devstc asked this question in Q&A
Discussion options

You must be logged in to vote

You can use data prop in the following format: [{ value: 'value-1', label: 'label-1' }, { value: 'value-2', label: 'label-2' }], value in this case will be your id

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@devstc
Comment options

Answer selected by devstc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants