From 854cb8f20c6c39cec5ba47942ec70f400f0164b1 Mon Sep 17 00:00:00 2001 From: sadeghbarati Date: Mon, 2 Oct 2023 13:19:45 +0330 Subject: [PATCH] docs: add `form.md` - change TabPreview.vue to showcase way of using vee-validate --- .../theme/components/TabPreview.vue | 25 +- apps/www/.vitepress/theme/config/docs.ts | 13 +- apps/www/src/content/docs/components/form.md | 318 ++++++++++++++++++ .../registry/default/example/InputForm.vue | 48 +++ .../registry/new-york/example/InputForm.vue | 48 +++ 5 files changed, 431 insertions(+), 21 deletions(-) create mode 100644 apps/www/src/content/docs/components/form.md create mode 100644 apps/www/src/lib/registry/default/example/InputForm.vue create mode 100644 apps/www/src/lib/registry/new-york/example/InputForm.vue diff --git a/apps/www/.vitepress/theme/components/TabPreview.vue b/apps/www/.vitepress/theme/components/TabPreview.vue index 025e1c34..46bb64ee 100644 --- a/apps/www/.vitepress/theme/components/TabPreview.vue +++ b/apps/www/.vitepress/theme/components/TabPreview.vue @@ -3,10 +3,14 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/lib/registry/default const props = withDefaults(defineProps<{ name: string + names?: string[] align?: 'center' | 'start' | 'end' sfcTsCode?: string sfcTsHtml?: string -}>(), { align: 'center' }) +}>(), { + align: 'center', + names: () => ['CLI', 'Manual'], +})