Switch

可用作表单控件的开关,提供两种尺寸。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 可用

用法

On — show text while people speak.

Small size, for dense settings lists.

Managed by your administrator.

导入

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

API 参考

SoneSwitchComponent组件

选择器
sone-switch
输入
名称类型 默认值
ariaLabelstring | nullnull
sizeSwitchSize"default"
inputIdstring | nullnull
invalidbooleanfalse
checkedbooleanfalse
disabledbooleanfalse
输出
名称类型
checkedChangeboolean