From 68d9804109c607ff25c7624db3372a97da32772e Mon Sep 17 00:00:00 2001
From: Roman Hrynevych <82209198+romanhrynevych@users.noreply.github.com>
Date: Thu, 22 Aug 2024 10:17:56 +0300
Subject: [PATCH] docs: add `TagsInput` form example (#725)
---
apps/www/__registry__/index.ts | 14 +++++
.../src/content/docs/components/tags-input.md | 4 ++
.../default/example/TagsInputFormDemo.vue | 62 +++++++++++++++++++
.../new-york/example/TagsInputFormDemo.vue | 62 +++++++++++++++++++
4 files changed, 142 insertions(+)
create mode 100644 apps/www/src/lib/registry/default/example/TagsInputFormDemo.vue
create mode 100644 apps/www/src/lib/registry/new-york/example/TagsInputFormDemo.vue
diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts
index 19a64516..85383e9a 100644
--- a/apps/www/__registry__/index.ts
+++ b/apps/www/__registry__/index.ts
@@ -1067,6 +1067,13 @@ export const Index = {
component: () => import("../src/lib/registry/default/example/TagsInputDemo.vue").then((m) => m.default),
files: ["../src/lib/registry/default/example/TagsInputDemo.vue"],
},
+ "TagsInputFormDemo": {
+ name: "TagsInputFormDemo",
+ type: "components:example",
+ registryDependencies: ["tags-input","button","form","toast"],
+ component: () => import("../src/lib/registry/default/example/TagsInputFormDemo.vue").then((m) => m.default),
+ files: ["../src/lib/registry/default/example/TagsInputFormDemo.vue"],
+ },
"TextareaDemo": {
name: "TextareaDemo",
type: "components:example",
@@ -2545,6 +2552,13 @@ export const Index = {
component: () => import("../src/lib/registry/new-york/example/TagsInputDemo.vue").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/TagsInputDemo.vue"],
},
+ "TagsInputFormDemo": {
+ name: "TagsInputFormDemo",
+ type: "components:example",
+ registryDependencies: ["tags-input","button","form","toast"],
+ component: () => import("../src/lib/registry/new-york/example/TagsInputFormDemo.vue").then((m) => m.default),
+ files: ["../src/lib/registry/new-york/example/TagsInputFormDemo.vue"],
+ },
"TextareaDemo": {
name: "TextareaDemo",
type: "components:example",
diff --git a/apps/www/src/content/docs/components/tags-input.md b/apps/www/src/content/docs/components/tags-input.md
index 97071831..f5d7468c 100644
--- a/apps/www/src/content/docs/components/tags-input.md
+++ b/apps/www/src/content/docs/components/tags-input.md
@@ -18,3 +18,7 @@ npx shadcn-vue@latest add tags-input
### Tags with Combobox
+
+### Form
+
+
diff --git a/apps/www/src/lib/registry/default/example/TagsInputFormDemo.vue b/apps/www/src/lib/registry/default/example/TagsInputFormDemo.vue
new file mode 100644
index 00000000..88766242
--- /dev/null
+++ b/apps/www/src/lib/registry/default/example/TagsInputFormDemo.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/example/TagsInputFormDemo.vue b/apps/www/src/lib/registry/new-york/example/TagsInputFormDemo.vue
new file mode 100644
index 00000000..3d894e5d
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/example/TagsInputFormDemo.vue
@@ -0,0 +1,62 @@
+
+
+
+
+