跳到內容

Switch (am-switch)

am-switch 適合「開/關會立即影響系統狀態」的偏好設定,例如通知、同步、公開模式。

  • 原生 checkbox semantics,並附 role="switch"
  • 內建 track / thumb 視覺與 label / description
  • 適合 settings、ops、dashboard 類場景
<Switch
label="LINE notification sync"
description="Send new booking events to the LINE workspace immediately."
checked={true}
/>

詳見 playground /playground/forms/ 範例。