Checkbox
# FxCheckbox Checkbox
Multiple selection among a set of options
# Basic Usage
Can be used alone to toggle between two states. The content within the tag serves as the description following the checkbox button.
Copy
# Disabled State
Disabled state of checkbox.
Copy
# Checkbox Group
Suitable for scenarios where multiple checkboxes are bound to the same array, using checked state to indicate selected items.
Copy
# Indeterminate State
The indeterminate property indicates an indeterminate state of checkbox, typically used to implement select-all functionality.
Copy
# Selection Limit
Use min and max properties to limit the number of selectable items.
Copy
# Button Style
Checkbox group with button style.
Copy
# With Border
Copy
# Checkbox Attributes
| Attribute | Description | Type | Options | Default | PC/Mobile Support |
|---|---|---|---|---|---|
| value / v-model | binding value | string / number / boolean | — | — | PC/Mobile |
| label | value when selected (only works when inside checkbox-group or bound to array type) | string / number / boolean | — | — | PC/Mobile |
| true-label | value when selected | string / number | — | — | PC Only |
| false-label | value when not selected | string / number | — | — | PC Only |
| disabled | whether disabled | boolean | — | false | PC/Mobile |
| border | whether to show border | boolean | — | false | PC Only |
| size | checkbox size, works when border is true | string | medium / small / mini | — | PC Only |
| name | native name attribute | string | — | — | PC Only |
| checked | whether currently checked | boolean | — | false | PC Only |
| indeterminate | controls indeterminate state, affects style only | boolean | — | false | PC Only |
# Checkbox Events
| Event Name | Description | Callback Parameters | PC/Mobile Support |
|---|---|---|---|
| change | triggers when binding value changes | updated value | PC/Mobile |
# Checkbox-group Attributes
| Attribute | Description | Type | Options | Default | PC/Mobile Support |
|---|---|---|---|---|---|
| value / v-model | binding value | array | — | — | PC/Mobile |
| size | checkbox group size, works for button-style or bordered checkboxes | string | medium / small / mini | — | PC Only |
| disabled | whether disabled | boolean | — | false | PC/Mobile |
| min | minimum number of checkboxes that can be checked | number | — | — | PC Only |
| max | maximum number of checkboxes that can be checked | number | — | — | PC/Mobile |
| text-color | text color when button-style checkbox is active | string | — | #ffffff | PC Only |
| fill | fill color and border color when button-style checkbox is active | string | — | #409EFF | PC Only |
# Checkbox-group Events
| Event Name | Description | Callback Parameters | PC/Mobile Support |
|---|---|---|---|
| change | triggers when binding value changes | updated value | PC/Mobile |
# Checkbox-button Attributes
| Attribute | Description | Type | Options | Default | PC/Mobile Support |
|---|---|---|---|---|---|
| label | value when selected (only works when inside checkbox-group or bound to array type) | string / number / boolean | — | — | PC/Mobile |
| true-label | value when selected | string / number | — | — | PC Only |
| false-label | value when not selected | string / number | — | — | PC Only |
| disabled | whether disabled | boolean | — | false | PC/Mobile |
| name | native name attribute | string | — | — | PC Only |
| checked | whether currently checked | boolean | — | false | PC Only |