Work with HeadlessUI / Terracotta #278
Answered
by
captDaylight
captDaylight
asked this question in
Q&A
-
I realize I'm working with Terracotta and SolidJS in this example, but the resulting dom structure is roughly the same when I create one of the elements as with HeadlessUI. The problem I'm having is the component isn't being picked up by Felte. Say I use a Here's a simple reproduction with Codesandbox. |
Beta Was this translation helpful? Give feedback.
Answered by
captDaylight
Nov 6, 2023
Replies: 1 comment
-
I ended up solving this with Custom Form Controls. const { field, onInput } = createField(props.name); // pass a name into my custom Listbox
// then later
<Listbox
ref={field}
defaultOpen={false}
value={selected()}
onSelectChange={(a: any) => {
setSelected(a);
onInput(a.name);
}}
class="relative shadow-sm rounded-lg"
> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
captDaylight
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ended up solving this with Custom Form Controls.