D2 UI - Searchable select field

I cannot find a searchable select field in the d2 UI library, if I am missing something please let me know as I find it hard to believe this is not an available component!


1 Like

Hi Peter,

There’s a filterable property (type=boolean) that I found on the docs, so it would look like this:

<SingleSelectField filterable label="Default label" onChange={onChange}>
    <SingleSelectOption label="one" value="1" />
    <SingleSelectOption label="two" value="2" />

Is this what you were looking for?


1 Like

Perfect thank you!

1 Like