Renders a text input with a popup that allows users to select a value from a list of suggestions.
With simple values:
<.combobox
id="dog-breed-selector"
name="breed"
list_label="Dog breeds"
options={[
"Labrador Retriever",
"German Shepherd",
"Golden Retriever",
"French Bulldog",
"Bulldog"
]}
/>
With label/value pairs:
<.combobox
id="dog-breed-selector"
name="breed"
list_label="Dog breeds"
options={[
{"Labrador Retriever", "labrador"},
{"German Shepherd", "german_shepherd"},
{"Golden Retriever", "golden_retriever"},
{"French Bulldog", "french_bulldog"},
{"Bulldog", "bulldog"}
]}
/>
With label/value/description tuples:
<.combobox
id="dog-breed-selector"
name="breed"
list_label="Dog breeds"
options={[
{"Labrador Retriever", "labrador", "Friendly and outgoing"},
{"German Shepherd", "german_shepherd", "Confident and smart"},
{"Golden Retriever", "golden_retriever", "Intelligent and friendly"},
{"French Bulldog", "french_bulldog", "Adaptable and playful"},
{"Bulldog", "bulldog", "Docile and willful"}
]}
/>