Switch

An on/off switch that works as a form control, in two sizes.

Available in
  • Angular: available
  • Vue: available
  • React: available
  • React Native: available

Usage

On — show text while people speak.

Small size, for dense settings lists.

Managed by your administrator.

Import

ts
import {
  SoneSwitchComponent,
} from "@surface-one/angular/switch";

API reference

SoneSwitchComponentComponent

Selector
sone-switch
Inputs
NameType Default
ariaLabelstring | nullnull
sizeSwitchSize"default"
inputIdstring | nullnull
invalidbooleanfalse
checkedbooleanfalse
disabledbooleanfalse
Outputs
NameType
checkedChangeboolean