Forms / Segmented

Forms

Segmented

A filter over one dimension where the options are few, exclusive, and worth seeing at once.

import { EcoSegmented } from "vue-ecosphere"

Stages, with the count inside each option

Value: "all"

seg--tight, with the three register marks

API

NameTypeDefaultDescription
v-modelstring | number | nullnullThe chosen value — options are mutually exclusive.
optionsEcoSegmentedOption[]—{ label, value, count?, mark?, disabled? } — the count shows inside the option.
mark"p" | "a" | "l"—On an option: colours it when selected (present, absent, late).
tightbooleanfalseNarrow padding for a control repeated down a column.
labelstring—Accessible name of the group.
disabledbooleanfalseDisable every option.