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
| Name | Type | Default | Description |
|---|---|---|---|
v-model | string | number | null | null | The chosen value — options are mutually exclusive. |
options | EcoSegmentedOption[] | — | { 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). |
tight | boolean | false | Narrow padding for a control repeated down a column. |
label | string | — | Accessible name of the group. |
disabled | boolean | false | Disable every option. |