This component no longer exists. It was in diceui/base’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-13 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
angle-slider-form-demo
diceui-base/angle-slider-form-demoRemovedExample
diceui/base publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/sadmann7/diceui/HEAD/docs/public/r/styles/base-vega/angle-slider-form-demo.jsonSource
1"use client";23import { zodResolver } from "@hookform/resolvers/zod";4import * as React from "react";5import { useForm } from "react-hook-form";6import { toast } from "sonner";7import * as z from "zod";8import {9 AngleSlider,10 AngleSliderRange,11 AngleSliderThumb,12 AngleSliderTrack,13 AngleSliderValue,14} from "@/registry/bases/base/ui/angle-slider";15import { Button } from "@/registry/bases/base/ui/button";16import {17 Form,18 FormControl,19 FormDescription,20 FormField,21 FormItem,22 FormLabel,23 FormMessage,24} from "@/registry/bases/base/ui/form";2526const formSchema = z.object({27 rotation: z.array(z.number()).length(1),28 range: z.array(z.number()).length(2),29});3031type FormSchema = z.infer<typeof formSchema>;3233export default function AngleSliderFormDemo() {34 const form = useForm<FormSchema>({35 resolver: zodResolver(formSchema),36 defaultValues: {37 rotation: [45],38 range: [90, 270],39 },40 });4142 const onSubmit = React.useCallback((data: FormSchema) => {43 toast.success(44 <pre className="w-full">{JSON.stringify(data, null, 2)}</pre>,45 );46 }, []);4748 const onReset = React.useCallback(() => {49 form.reset();50 }, [form]);5152 return (53 <Form {...form}>54 <form55 onSubmit={form.handleSubmit(onSubmit)}56 className="flex flex-col gap-4"57 >58 <div className="grid grid-cols-2 gap-4">59 <FormField60 control={form.control}61 name="rotation"62 render={({ field }) => (63 <FormItem className="place-items-center rounded-lg border p-6">64 <FormLabel>Rotation angle</FormLabel>65 <FormControl>66 <AngleSlider67 value={field.value}68 onValueChange={field.onChange}69 max={360}70 min={0}71 step={1}72 size={60}73 name={field.name}74 >75 <AngleSliderTrack>76 <AngleSliderRange />77 </AngleSliderTrack>78 <AngleSliderThumb />79 <AngleSliderValue />80 </AngleSlider>81 </FormControl>82 <FormDescription>83 Set the rotation angle in degrees (0-360°)84 </FormDescription>85 <FormMessage />86 </FormItem>87 )}88 />89 <FormField90 control={form.control}91// … truncated
What it pulls in
npm packages
Other registry items
