Checkbox

This component is compatible with standard <form> elements. For more information on form submission and client-side validation, please refer to the Working with forms section.

Basic example

<vscode-checkbox
  label="Checkbox example"
  value="testvalue1"
  checked
></vscode-checkbox>

Indeterminate state

<vscode-checkbox
  label="Indeterminate example"
  indeterminate
></vscode-checkbox>

Slotted content

Hello World!

<vscode-checkbox>
  <b>Hello</b> World!
</vscode-checkbox>