// Range Widget - maps to shadcn/ui Slider import type { WidgetProps } from "@rjsf/utils"; import { Slider } from "@/components/ui/slider"; import { cn } from "@/lib/utils"; export function RangeWidget(props: WidgetProps) { const { id, value, disabled, readonly, onChange, schema, options } = props; const min = schema.minimum ?? 0; const max = schema.maximum ?? 100; const step = (options.step as number) || (schema.type === "integer" ? 1 : 0.1); return (