ISwitchTrackSlots

interface
Slots

Slot signatures for <OrigamSwitchTrack> — exposes track.true and track.false half-label slots plus an overlay slot for absolute-positioned decorations (e.g. a loading bar).

TypeScript

Definition

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

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

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

'track.true'
(props: ISwitchTrackSlotsProps) => any
'track.false'
(props: ISwitchTrackSlotsProps) => any
overlay
(props: ISwitchTrackSlotsProps) => any
Free-form overlay rendered inside the track after the half-labels. Used for loading bars or decorative elements.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Icon labels on each half of the track

html