Toggle 开关

开关是为了看起来像开关按钮的样式的复选框。

类名
类型
form-control 组件类 Container element
toggle 组件类 For checkbox
toggle-primary
装饰类
Adds `primary` to toggle
toggle-secondary
装饰类
Adds `secondary` to toggle
toggle-accent
装饰类
Adds `accent` to toggle
toggle-success
装饰类
Adds `success` to toggle
toggle-warning
装饰类
Adds `warning` to toggle
toggle-info
装饰类
Adds `info` to toggle
toggle-error
装饰类
Adds `error` to toggle
toggle-lg
响应类
Large toggle
toggle-md
响应类
Medium toggle (default)
toggle-sm
响应类
Small toggle
toggle-xs
响应类
Extra small toggle
# Toggle
# With label and form-control
# Checkboxes with brand colors
# Checkboxes with state colors
# Sizes
# Disabled
# Disabled and checked
# Indeterminate
# Toggle with custom color
daisyUI store

New template: SaaS Landing page

Available on daisyUI store

More details