diff --git a/apps/www/src/lib/registry/default/example/InputForm.vue b/apps/www/src/lib/registry/default/example/InputForm.vue
index 65e138bf..f2ec0cc1 100644
--- a/apps/www/src/lib/registry/default/example/InputForm.vue
+++ b/apps/www/src/lib/registry/default/example/InputForm.vue
@@ -3,6 +3,7 @@ import { useForm } from 'vee-validate'
import { toTypedSchema } from '@vee-validate/zod'
import * as z from 'zod'
+import { h } from 'vue'
import { Button } from '@/lib/registry/default/ui/button'
import {
FormControl,
@@ -13,6 +14,7 @@ import {
FormMessage,
} from '@/lib/registry/default/ui/form'
import { Input } from '@/lib/registry/default/ui/input'
+import { toast } from '@/lib/registry/default/ui/toast/use-toast'
const formSchema = toTypedSchema(z.object({
username: z.string().min(2).max(50),
@@ -23,7 +25,10 @@ const { handleSubmit } = useForm({
})
const onSubmit = handleSubmit((values) => {
- console.log('Form submitted!', values)
+ toast({
+ title: 'You submitted the following values:',
+ description: h('pre', { class: 'mt-2 w-[340px] rounded-md bg-slate-950 p-4' }, h('code', { class: 'text-white' }, JSON.stringify(values, null, 2))),
+ })
})
diff --git a/apps/www/src/lib/registry/default/ui/toast/Toast.vue b/apps/www/src/lib/registry/default/ui/toast/Toast.vue
index 46e3bd2b..6d13dc83 100644
--- a/apps/www/src/lib/registry/default/ui/toast/Toast.vue
+++ b/apps/www/src/lib/registry/default/ui/toast/Toast.vue
@@ -1,18 +1,24 @@
-
+
+
diff --git a/apps/www/src/lib/registry/default/ui/toast/ToastDescription.vue b/apps/www/src/lib/registry/default/ui/toast/ToastDescription.vue
index 98630e3d..5f71b1a8 100644
--- a/apps/www/src/lib/registry/default/ui/toast/ToastDescription.vue
+++ b/apps/www/src/lib/registry/default/ui/toast/ToastDescription.vue
@@ -1,6 +1,6 @@
diff --git a/apps/www/src/lib/registry/default/ui/toast/Toaster.vue b/apps/www/src/lib/registry/default/ui/toast/Toaster.vue
index d5db5dcd..f86ce40b 100644
--- a/apps/www/src/lib/registry/default/ui/toast/Toaster.vue
+++ b/apps/www/src/lib/registry/default/ui/toast/Toaster.vue
@@ -1,4 +1,5 @@
diff --git a/apps/www/src/lib/registry/new-york/ui/toast/Toast.vue b/apps/www/src/lib/registry/new-york/ui/toast/Toast.vue
index 46e3bd2b..6d13dc83 100644
--- a/apps/www/src/lib/registry/new-york/ui/toast/Toast.vue
+++ b/apps/www/src/lib/registry/new-york/ui/toast/Toast.vue
@@ -1,18 +1,24 @@
-
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/toast/ToastDescription.vue b/apps/www/src/lib/registry/new-york/ui/toast/ToastDescription.vue
index 98630e3d..5f71b1a8 100644
--- a/apps/www/src/lib/registry/new-york/ui/toast/ToastDescription.vue
+++ b/apps/www/src/lib/registry/new-york/ui/toast/ToastDescription.vue
@@ -1,6 +1,6 @@
diff --git a/apps/www/src/lib/registry/new-york/ui/toast/Toaster.vue b/apps/www/src/lib/registry/new-york/ui/toast/Toaster.vue
index d5db5dcd..f86ce40b 100644
--- a/apps/www/src/lib/registry/new-york/ui/toast/Toaster.vue
+++ b/apps/www/src/lib/registry/new-york/ui/toast/Toaster.vue
@@ -1,4 +1,5 @@