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/components/content/docs/components/dropdown/CustomDropdown.vue b/components/content/docs/components/dropdown/CustomDropdown.vue
index 7d239d56..a107092c 100644
--- a/components/content/docs/components/dropdown/CustomDropdown.vue
+++ b/components/content/docs/components/dropdown/CustomDropdown.vue
@@ -6,7 +6,6 @@ import {
Button,
Dropdown,
DropdownAction,
- DropdownArrow,
DropdownContent,
DropdownList,
} from "~/src";
@@ -75,7 +74,6 @@ const dropdownData = [
-
diff --git a/components/content/docs/components/dropdown/DropdownWithoutArrowIcon.vue b/components/content/docs/components/dropdown/DropdownWithArrowIcon.vue
similarity index 84%
rename from components/content/docs/components/dropdown/DropdownWithoutArrowIcon.vue
rename to components/content/docs/components/dropdown/DropdownWithArrowIcon.vue
index 5a96eacb..017d2abf 100644
--- a/components/content/docs/components/dropdown/DropdownWithoutArrowIcon.vue
+++ b/components/content/docs/components/dropdown/DropdownWithArrowIcon.vue
@@ -4,23 +4,24 @@ import {
Divider,
Dropdown,
DropdownAction,
+ DropdownArrow,
DropdownContent,
DropdownItem,
DropdownList,
} from "~/src";
-import { DropdownWithoutArrowIconCode } from "./dropdownCode";
+import { DropdownWithArrowIconCode } from "./dropdownCode";
+ :code="DropdownWithArrowIconCode">
-
+
Contacts
Phone
@@ -32,6 +33,7 @@ import { DropdownWithoutArrowIconCode } from "./dropdownCode";
Account
Logout
+
diff --git a/components/content/docs/components/dropdown/DropdownWithIcon.vue b/components/content/docs/components/dropdown/DropdownWithIcon.vue
index c2ad65c8..ebfba9e9 100644
--- a/components/content/docs/components/dropdown/DropdownWithIcon.vue
+++ b/components/content/docs/components/dropdown/DropdownWithIcon.vue
@@ -3,7 +3,6 @@ import CodeHighlightWithPreview from "~/components/content/CodeHighlightWithPrev
import {
Dropdown,
DropdownAction,
- DropdownArrow,
DropdownContent,
DropdownItem,
DropdownList,
@@ -53,7 +52,6 @@ import { DropdownWithIconCode } from "./dropdownCode";
Logout
-
diff --git a/components/content/docs/components/dropdown/dropdownCode.ts b/components/content/docs/components/dropdown/dropdownCode.ts
index a97311e4..dcb63029 100644
--- a/components/content/docs/components/dropdown/dropdownCode.ts
+++ b/components/content/docs/components/dropdown/dropdownCode.ts
@@ -72,7 +72,6 @@ const dropdownData = [
-
`,
@@ -180,20 +179,20 @@ import {
Logout
-
`,
};
-const DropdownWithoutArrowIconCode = {
+const DropdownWithArrowIconCode = {
"DropdownComponent.vue": `
@@ -80,7 +84,23 @@ import ThemeSwitcherForDoc from "./ThemeSwitcherForDoc.vue";
-
+
+
+
+
+
diff --git a/components/content/docs/getting-started/dark-mode/DarkModeForVue.vue b/components/content/docs/getting-started/dark-mode/DarkModeForVue.vue
index 03658535..cc75d323 100644
--- a/components/content/docs/getting-started/dark-mode/DarkModeForVue.vue
+++ b/components/content/docs/getting-started/dark-mode/DarkModeForVue.vue
@@ -6,7 +6,12 @@ import {
vueThemeSwitcherComponentCode,
vueUseInstallForVue,
} from "./darkModeCodes";
-import ThemeSwitcherForDoc from "./ThemeSwitcherForDoc.vue";
+
+const colorMode = useColorMode();
+
+const toggleTheme = () => {
+ colorMode.preference = colorMode.preference === "dark" ? "light" : "dark";
+};
@@ -44,7 +49,23 @@ import ThemeSwitcherForDoc from "./ThemeSwitcherForDoc.vue";
-
+
+
+
+
+
diff --git a/content/docs/components/dropdown.md b/content/docs/components/dropdown.md
index 53c2ebab..6e8c796e 100644
--- a/content/docs/components/dropdown.md
+++ b/content/docs/components/dropdown.md
@@ -21,10 +21,10 @@ Customize the dropdown according to your preferences.
::CustomDropdown
::
-## Dropdown Without Arrow
+## Dropdown With Arrow
If you don't want the arrow while showing the dropdown remove the `` while using the dropdown.
-::DropdownWithoutArrowIcon
+::DropdownWithArrowIcon
::
## Dropdown Api
diff --git a/content/docs/components/slider.md b/content/docs/components/slider.md
index 551f3269..26597788 100644
--- a/content/docs/components/slider.md
+++ b/content/docs/components/slider.md
@@ -5,6 +5,8 @@ description: "The slider component in the Keep Vue allows users to select a valu
## Default Slider
+To use the Slider, you must bind the slider's `ref` value to the `v-model`.
+
::DefaultSlider
::
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)">
+ ">