Select with search (experimental) example
With data attributes
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/select_with_search", {
id: "dropdown-with-data-attributes",
data_attributes: {
module: "not-a-module",
loose: "moose"
},
label: "Select your country",
options: [
{
text: "France",
value: "fr"
},
{
text: "Germany",
value: "de"
},
{
text: "United Kingdom",
value: "uk"
}
]
} %>