You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried rendering <Combobox.Input /> as a <Fragment />, then render <input /> inside it, as suggested by doc
<Combobox.Input
as={Fragment}
...
>
<input />
// tried putting custom displayComponent here, but lost some Combobox feature such as autocomplete
</Combobox.Input>
Thank you tailwind Team for making this amazing headless UI library!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Currently
Combobox.Input
displayValue
only allowstring
typeI would like to render customizable component as
displayValue
tooUse Case(s)
Some example use cases can be found in tailwindUI combobox demo page
Proposed Usage
ReactElement
(and other props for other framework?); OR<Combobox.DisplayComponent />
where its children would be rendered as display?Also, this
displayComponent
is expected to be shown while combobox is not active/focus/editingAlternatives Considered
I tried rendering
<Combobox.Input />
as a<Fragment />
, then render<input />
inside it, as suggested by docThank you tailwind Team for making this amazing headless UI library!
Beta Was this translation helpful? Give feedback.
All reactions