IOptions
interface
Data & State
Generic label/value pair shape used across Select, RadioGroup, ChipGroup, BtnToggle and any component that needs a typed option list. The value is `T | undefined` so consumers can model an explicit "no value" row.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- labelrequiredstring
- Human-readable display label shown in the option list.
- valuerequiredT | undefined
- Typed option value emitted on selection. `undefined` models an explicit "no selection" row without leaving the typed union.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Typing an options array for a Select component