From 9a11e0f4a38297006b89cc7bb2a60734111582e0 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Sun, 10 Mar 2024 00:13:25 +0000
Subject: Migrate to nuxt

---
 components/Control/Checkbox.vue | 42 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 components/Control/Checkbox.vue

(limited to 'components/Control/Checkbox.vue')

diff --git a/components/Control/Checkbox.vue b/components/Control/Checkbox.vue
new file mode 100644
index 0000000..e0325e7
--- /dev/null
+++ b/components/Control/Checkbox.vue
@@ -0,0 +1,42 @@
+<script setup lang="ts">
+const model = defineModel();
+
+defineProps({
+  id: String,
+  label: String,
+  description: String,
+});
+
+</script>
+
+<template>
+  <div class="checkbox">
+    <label id="wrapper" :for="id">
+      <input :id="id" type="checkbox" v-model="model" />
+      <span id="label">{{ label }}</span>
+      <span id="description">{{ description }}</span>
+    </label>
+  </div>
+</template>
+
+<style scoped>
+#label {
+  display: block;
+  font-weight: bold;
+}
+
+#description {
+  display: block;
+  font-size: 0.8em;
+}
+
+input {
+  float: left;
+  margin: 5px 0 0 -20px;
+}
+
+.checkbox {
+  padding: 0 0 0 20px;
+}
+
+</style>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

