Skip to content

[select] If "items" is a list of objects and the "label" is not named "label" selected value should show the display value #2796

Answered by segunadebayo
JordanDDisch asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it's configurable. Pass itemToString prop to the select component

<Select.Root items={regions} name="fw" itemToString={(item) => item.name}>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by segunadebayo
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