Select with search (experimental) example
With blank option
Include a blank option
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/select_with_search", {
id: "dropdown-with-blank",
label: "With blank option",
include_blank: true,
options: [
{
text: "Option one",
value: "option1"
},
{
text: "Option two",
value: "option2"
},
{
text: "Option three",
value: "option3"
}
]
} %>