Checkbox

A control that allows the user to toggle between checked and not checked.

Source code

Click here to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.

Installation

npx ui-thing@latest add checkbox

Usage

Basic

You agree to our Terms of Service and Privacy Policy.

Default

We can set the default value of the checkbox by binding the v-model:checked prop to a boolean value.

To bind the default value on the VeeCheckbox component, we need to use the v-model prop instead of v-model:checked.

This checkbox will be true by default.