ISwitchTrackSlotsProps

interface
Slots

Slot payload forwarded to the track.true, track.false and overlay slots of <OrigamSwitchTrack> — provides model (ON/OFF) and isValid so slot content can adapt contextually.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

color
TColor
model
required
boolean
Current ON/OFF state of the switch — true = ON.
isValid
required
boolean | null
Validation state forwarded from the surrounding input context. null = pristine.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Conditional icon based on model + validity

html