跳到內容

Checkbox (am-checkbox)

am-checkbox 用於可累加的布林選項,例如同意條款、接收通知、補充資料需求。

  • 原生 <input type="checkbox">
  • 內建 label 與 description 文案區塊
  • 可搭配 invalid 表示必填但未確認
<Checkbox
label="Accept operating terms"
description="Required before submitting the booking request."
invalid={true}
/>

詳見 playground /playground/forms/ 範例。