Koala logo Design
Esc
No matches for “
↑↓ navigate open Esc close
Components Slider select

Slider select

Generic segmented pill control with a sliding active thumb. The shape used by the dashboard period filter — now extracted so any 2–5 option group can adopt it (period filters, timeframe pickers, view-mode toggles). <koala-period-filter> is a domain wrapper around this with the period option list baked in.

<koala-slider-select>
Canonical — period filter
Three options — view switcher
Two options — yes / no

For yes/no questions inside forms (with model binding), prefer <koala-radio-yes-no> — slider-select is a navigation control, not a form field.

Props
Attribute Values Notes
optionsIReadOnlyList<SliderOption>Required. Each option is a (Key, Label) pair.
active-keyStringRequired. Must match one option's Key; the helper throws otherwise.
base-urlURLEach option link appends ?{query-param}={key}.
target-idStringAlpine-AJAX swap target. Default main.
query-paramStringURL parameter name. Default period.