Upgrade to @headlessui/react v2 and add support for selectedOption #1040
andreibarabas
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the select item components only support plain text, but if we want to add some complex UI in the dropdown, it's not possible because we need it to be text in the Select field.
With the new
selectedOption
render prop introduced by@headlessui
, we could use the children of to render it's complex ui when the dropdown is expanded, and then add a selectedOptionText property to the SelectedItem to show in the barSomething like
Beta Was this translation helpful? Give feedback.
All reactions