Checkbox
vue
<template>
<div>
<Checkbox
label="I agree to the terms and conditions"
name="tc"
value="1"
:checked="true"
/>
</div>
</template>
<script setup>
import Checkbox from "@/components/Checkbox";
</script>
TIP
You can use html checkbox attribute via props. For example: name="tc"
, value="1"
You can also use label
props for label text.