docs: fix component rendering

This commit is contained in:
Sven Parker 2024-03-04 12:35:35 +01:00
parent bfe4c3d3c2
commit f3a3c08efc
4 changed files with 23 additions and 10 deletions

View File

@ -633,6 +633,13 @@ export const Index = {
component: () => import("../src/lib/registry/default/example/SliderDemo.vue").then((m) => m.default),
files: ["../src/lib/registry/default/example/SliderDemo.vue"],
},
"SliderForm": {
name: "SliderForm",
type: "components:example",
registryDependencies: ["button","form","select","toast"],
component: () => import("../src/lib/registry/default/example/SliderForm.vue").then((m) => m.default),
files: ["../src/lib/registry/default/example/SliderForm.vue"],
},
"SonnerDemo": {
name: "SonnerDemo",
type: "components:example",
@ -1600,6 +1607,13 @@ export const Index = {
component: () => import("../src/lib/registry/new-york/example/SliderDemo.vue").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/SliderDemo.vue"],
},
"SliderForm": {
name: "SliderForm",
type: "components:example",
registryDependencies: ["button","form","select","toast"],
component: () => import("../src/lib/registry/new-york/example/SliderForm.vue").then((m) => m.default),
files: ["../src/lib/registry/new-york/example/SliderForm.vue"],
},
"SonnerDemo": {
name: "SonnerDemo",
type: "components:example",

View File

@ -27,7 +27,6 @@ import { Slider } from '@/components/ui/slider'
</template>
```
## Examples
### Form

View File

@ -18,8 +18,8 @@ import { toast } from '@/lib/registry/default/ui/toast'
const formSchema = toTypedSchema(z.object({
duration: z.array(
z.number().min(1).max(1440)
),
z.number().min(0).max(60),
),
}))
const { handleSubmit } = useForm({

View File

@ -18,8 +18,8 @@ import { toast } from '@/lib/registry/new-york/ui/toast'
const formSchema = toTypedSchema(z.object({
duration: z.array(
z.number().min(1).max(1440)
),
z.number().min(0).max(60),
),
}))
const { handleSubmit } = useForm({