复选框
By clicking this checkbox, you agree to the terms.
用途
Add your checkbox HTML
Add class="input" to checkbox inputs. Pair it with Field and a native <label> for layout and labeling.
示例
基本
Pair the checkbox with field and a native <label> for proper layout and labeling.
说明
使用 section 和段落作为帮助文本。
By clicking this checkbox, you agree to the terms and conditions.
已禁用
使用 disabled 属性来防止交互,并将 data-disabled 添加到 .field 组件以禁用样式。
无效
在复选框上设置 aria-invalid="true",在字段包装器上设置 data-invalid 以显示无效样式。
组
使用多个字段创建复选框列表。
表
| Name | Role | ||
|---|---|---|---|
| Sarah Chen | sarah.chen@example.com | Admin | |
| Marcus Rodriguez | marcus.rodriguez@example.com | User | |
| Priya Patel | priya.patel@example.com | User | |
| David Kim | david.kim@example.com | Editor |
RTL
将 dir="rtl" 添加到字段组或祖先。
بالنقر على هذا المربع، فإنك توافق على الشروط.