<tap-switch>

开关切换组件。支持多种语义色彩与禁用状态。

Example

API

Shadow DOM; Extends GemElement

Instance Properties

Property(Attribute) Reactive Type
disabled(disabled) Yes boolean
checked(checked) Yes boolean
value(value) Yes string
label(label) Yes string
neutral(neutral) Yes 'positive' | 'negative' | 'neutral' | 'informative'
change Emitter<boolean>

Other

Type Value
Event change
Slot unnamed
CSS State delegate-focus