diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 5a7e5e85..999ff3a9 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -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", diff --git a/apps/www/src/content/docs/components/slider.md b/apps/www/src/content/docs/components/slider.md index fda6294b..4d4c2c93 100644 --- a/apps/www/src/content/docs/components/slider.md +++ b/apps/www/src/content/docs/components/slider.md @@ -1,11 +1,11 @@ --- title: Slider description: An input where the user selects a value from within a given range. -source: apps/www/src/lib/registry/default/ui/slider +source: apps/www/src/lib/registry/default/ui/slider primitive: https://www.radix-vue.com/components/slider.html --- - + ## Installation @@ -27,9 +27,8 @@ import { Slider } from '@/components/ui/slider' ``` - ## Examples ### Form - \ No newline at end of file + diff --git a/apps/www/src/lib/registry/default/example/SliderForm.vue b/apps/www/src/lib/registry/default/example/SliderForm.vue index 3c22ce62..c026259d 100644 --- a/apps/www/src/lib/registry/default/example/SliderForm.vue +++ b/apps/www/src/lib/registry/default/example/SliderForm.vue @@ -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({ @@ -60,4 +60,4 @@ const onSubmit = handleSubmit((values) => { Submit - \ No newline at end of file + diff --git a/apps/www/src/lib/registry/new-york/example/SliderForm.vue b/apps/www/src/lib/registry/new-york/example/SliderForm.vue index d5c14179..66567b91 100644 --- a/apps/www/src/lib/registry/new-york/example/SliderForm.vue +++ b/apps/www/src/lib/registry/new-york/example/SliderForm.vue @@ -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({ @@ -60,4 +60,4 @@ const onSubmit = handleSubmit((values) => { Submit - \ No newline at end of file +