Forms / Select button

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

NameTypeDefaultDescription
v-modelstring | number | nullnullThe chosen value.
v-model:openbooleanfalseWhether the menu is open.
optionsEcoOption[]—{ label, value, hint?, count?, disabled? } — the hint is shown beside the label, in the trigger too.
ariaLabelstring—Trigger name when there is no label.
separatorstring" · "Join between label and hint in the trigger.
placeholderstring"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 / #optionslot—Custom trigger text / option content.