diff --git a/components/content/docs/components/checkbox/CheckboxApi.vue b/components/content/docs/components/checkbox/CheckboxApi.vue
index c6e7fc1a..21dcc616 100644
--- a/components/content/docs/components/checkbox/CheckboxApi.vue
+++ b/components/content/docs/components/checkbox/CheckboxApi.vue
@@ -11,9 +11,9 @@ const CheckBoxApiData = [
},
{
id: 3,
- propsName: "checked",
- propsType: "v-model",
- propsDescription: "Checked state of the checkbox",
+ propsName: "default-checked",
+ propsType: "boolean",
+ propsDescription: "Default Checked state of the checkbox",
},
];
diff --git a/components/content/docs/components/checkbox/DefaultCheckbox.vue b/components/content/docs/components/checkbox/DefaultCheckbox.vue
index ea6ecae4..61065e5e 100644
--- a/components/content/docs/components/checkbox/DefaultCheckbox.vue
+++ b/components/content/docs/components/checkbox/DefaultCheckbox.vue
@@ -1,11 +1,7 @@
@@ -15,17 +11,11 @@ const statusTwo = ref(false);
Keep Design System License
diff --git a/components/content/docs/components/checkbox/checkboxCode.ts b/components/content/docs/components/checkbox/checkboxCode.ts
index 8fa02906..2a7779f7 100644
--- a/components/content/docs/components/checkbox/checkboxCode.ts
+++ b/components/content/docs/components/checkbox/checkboxCode.ts
@@ -1,33 +1,24 @@
const defaultCheckboxCode = {
"CheckboxComponent.vue": `
-
+
+
Keep Design System License
+
`,
};
diff --git a/src/components/Checkbox/Checkbox.vue b/src/components/Checkbox/Checkbox.vue
index b0a8f87e..f569eee2 100644
--- a/src/components/Checkbox/Checkbox.vue
+++ b/src/components/Checkbox/Checkbox.vue
@@ -2,6 +2,8 @@
import {
CheckboxIndicator,
CheckboxRoot,
+ useForwardPropsEmits,
+ type CheckboxRootEmits,
type CheckboxRootProps,
} from "radix-vue";
import { computed } from "vue";
@@ -20,25 +22,21 @@ const props = withDefaults(
class: "",
iconClass: "",
variant: "default",
- checked: false,
},
);
-// Define emits
-const emit = defineEmits<{
- "update:checked": [value: boolean];
-}>();
+const emits = defineEmits
();
const restProps = computed(() => {
- const { class: _, iconClass, checked, variant, ...rest } = props;
+ const { class: _, iconClass, variant, ...rest } = props;
return rest;
});
+const forwarded = useForwardPropsEmits(restProps, emits);
emit('update:checked', value)">
+ ">