CtrlK
Sign in

Checkbox

Brief Introduction#

Basic Component - Checkbox. Mainly used for selecting multiple values from several options, or used to tag state switching seprately.

Examples#

Standalone Usage#

Use v-model to enable two-way binding.

Combination Usage#

Use CheckboxGroup combined with array to generate a combination. In this case, Checkbox uses label to judge selected state automatically. The content of each Checkbox can be customized. If not filled, the value of label prop will be used by default.

Disabled#

To disable Checkbox by setting disabled prop.

Border#

Set the property border to display the border.

Communication with Other Components#

Data linking with other components.

Select All#

You might use indeterminate prop when realise select-all effect. The demo code is just a kind of realisation. There are many other ways you can use in your bussiness.

API #

Checkbox Props #

Checkbox Events #

CheckboxGroup Props #

CheckboxGroup Events #