Forms
Select button
A disclosure button opening a menu, for a choice a native select cannot show.
import { EcoSelectButton } from "vue-ecosphere"
With a label
The count beside the name is the decision. Arrow keys move, Escape closes.
Home room
Value: "a"
Beside a text input, in a two-column field grid
It matches input exactly: no seam.
Class
Without a field
API
| Name | Type | Default | Description |
|---|---|---|---|
v-model | string | number | null | null | The chosen value. |
v-model:open | boolean | false | Whether the menu is open. |
options | EcoOption[] | — | { label, value, hint?, count?, disabled? } — the hint is shown beside the label, in the trigger too. |
ariaLabel | string | — | Trigger name when there is no label. |
separator | string | " · " | Join between label and hint in the trigger. |
placeholder | string | "Choose an option" | Trigger text while nothing is chosen. |
label / required / hint / error / first / disabled | — | — | Field props; the label sits above, never in the trigger. |
#value / #option | slot | — | Custom trigger text / option content. |