| ds_combobox | R Documentation |
Create a combobox container using Designsystemet styles. Unlike
ds_suggestion, this is a pure CSS component — keyboard navigation
and dropdown behaviour must be implemented by the caller.
ds_combobox(inputId, ..., size = NULL, class = NULL)
inputId |
The input slot for Shiny reactivity |
... |
Child elements (input wrapper, options wrapper, etc.) |
size |
Size variant ("sm", "md", "lg") |
class |
Additional CSS classes |
A Shiny tag object
ds_combobox("mycombo",
htmltools::tags$div(class = "ds-combobox__input__wrapper",
htmltools::tags$input(class = "ds-combobox__input", type = "text")
),
htmltools::tags$div(class = "ds-combobox__options-wrapper")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.