开关
拨动式的开/关控件,比复选框更直观,适合设置项的启用禁用。
实现提示词
Toggle switch for notification settings: flipping takes effect instantly, with a label showing the current state.Toggle switch with spring knob slide (250ms) and track color crossfade; instant effect with state label.设计规范条目
### Switch / Toggle (#switch) Category: Forms Switch: A toggle-style on/off control—more intuitive than a checkbox, suited for enabling/disabling settings. - Do: Toggle switch for notification settings: flipping takes effect instantly, with a label showing the current state With motion: Toggle switch with spring knob slide (250ms) and track color crossfade; instant effect with state label. Live demo: https://uidesignmd.com/guides/switch/