diff --git a/playground/app.vue b/playground/app.vue
index 6a7119aa..a8db9412 100644
--- a/playground/app.vue
+++ b/playground/app.vue
@@ -13,6 +13,7 @@ const components = [
'badge',
'button',
'card',
+ 'checkbox',
'chip',
'collapsible',
'form',
diff --git a/playground/components/FormNestedExample.vue b/playground/components/FormNestedExample.vue
index c677d6b0..76399d44 100644
--- a/playground/components/FormNestedExample.vue
+++ b/playground/components/FormNestedExample.vue
@@ -47,8 +47,7 @@ function onError (event: any) {
-
-
+
diff --git a/playground/pages/badge.vue b/playground/pages/badge.vue
index e1bda8bc..2e54b9f6 100644
--- a/playground/pages/badge.vue
+++ b/playground/pages/badge.vue
@@ -26,7 +26,7 @@ const sizes = Object.keys(theme.variants.size)
-
diff --git a/playground/pages/button.vue b/playground/pages/button.vue
index a4d1faac..1a8bd25a 100644
--- a/playground/pages/button.vue
+++ b/playground/pages/button.vue
@@ -59,13 +59,13 @@ const sizes = Object.keys(theme.variants.size)
-
+
-
+
-
+
-
+
diff --git a/playground/pages/checkbox.vue b/playground/pages/checkbox.vue
new file mode 100644
index 00000000..7e4f279d
--- /dev/null
+++ b/playground/pages/checkbox.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/playground/pages/chip.vue b/playground/pages/chip.vue
index dfaf7069..16223f96 100644
--- a/playground/pages/chip.vue
+++ b/playground/pages/chip.vue
@@ -29,7 +29,7 @@ const items = [{
-
+
diff --git a/playground/pages/form-field.vue b/playground/pages/form-field.vue
index f0fde9a1..47f87349 100644
--- a/playground/pages/form-field.vue
+++ b/playground/pages/form-field.vue
@@ -13,7 +13,7 @@ const feedbacks = [
-
+
@@ -32,5 +32,18 @@ const feedbacks = [
+
+
+
+
+
+
diff --git a/playground/pages/form.vue b/playground/pages/form.vue
index eb95d3b3..16477892 100644
--- a/playground/pages/form.vue
+++ b/playground/pages/form.vue
@@ -5,15 +5,17 @@ import type { Form, FormSubmitEvent } from '#ui/types/form'
type User = {
email: string
password: string
+ tos: boolean
}
-const state = ref
({ email: '', password: '' })
-const state2 = ref({ email: '', password: '' })
-const state3 = ref({ email: '', password: '' })
+const state = reactive>({})
+const state2 = reactive>({})
+const state3 = reactive>({})
const schema = z.object({
email: z.string().email(),
- password: z.string().min(8)
+ password: z.string().min(8),
+ tos: z.literal(true)
})
const disabledForm = ref