# UiCheckbox

## Usage

```html
<template>
  <UiCheckbox required name="terms" appearance="secondary">
    Accept terms and conditions
  </UiCheckbox>
</template>

<script setup>
import UiCheckbox from "@dpa-id-components/dpa-shared-components/components/UiCheckbox/UiCheckbox.vue";
</script>
```

This component binds all non-prop attributes (apart from `class`) on its principal element (`input[type="checkbox"]`) instead of the root element. This allows you to add arbitrary HTML attributes (and event listeners) on the principal element without them being explicitly supported by the component.
