# ComboBoxComponent

A text field with suggestions that follow what is typed.

```java
ComboBoxComponent<Block> block = add(new ComboBoxComponent<>(at(new Box("block", 10, 10, 160, 16)),
        this, blocks, Block::name)
        .placeholder(words.get("mymod.block"))
        .emptyText(words.get("mymod.no_block"))
        .onSelect(this::use));
add(new ButtonComponent(at(new Box("ok", 10, 34, 80, 20)), words.get("gui.done"), this::save));
// Last, so that the list is drawn over the button and offered every input first.
add(block.popup());
```

## Variants

- Items

Page: https://minuit.dryaides.com/components/combobox.html
