Skip to main content

SwitchControlDefinition

An on and off choice. Its value is the string true or false.

This is an interface exported by @mapcairn/sdk/browser, checked against version 0.2.0.

Signature​

import type { SwitchControlDefinition } from "@mapcairn/sdk/browser";

interface SwitchControlDefinition extends ControlBase

Properties​

default​

readonly default: boolean;

Whether it starts on.

kind​

readonly kind: "switch";

Tells a switch from the other control kinds.

See also​