{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "radix-radio-group", "type": "registry:ui", "title": "Radio Group", "description": "A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.", "dependencies": [ "motion", "lucide-react", "radix-ui" ], "files": [ { "path": "registry/radix/radio-group/index.tsx", "content": "'use client';\n\nimport * as React from 'react';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport { Circle } from 'lucide-react';\nimport {\n AnimatePresence,\n motion,\n type HTMLMotionProps,\n type Transition,\n} from 'motion/react';\n\nimport { cn } from '@/lib/utils';\n\ntype RadioGroupProps = React.ComponentProps & {\n transition?: Transition;\n};\n\nfunction RadioGroup({ className, ...props }: RadioGroupProps) {\n return (\n \n );\n}\n\ntype RadioGroupIndicatorProps = React.ComponentProps<\n typeof RadioGroupPrimitive.Indicator\n> & {\n transition: Transition;\n};\n\nfunction RadioGroupIndicator({\n className,\n transition,\n ...props\n}: RadioGroupIndicatorProps) {\n return (\n \n \n \n \n \n \n \n );\n}\n\ntype RadioGroupItemProps = React.ComponentProps<\n typeof RadioGroupPrimitive.Item\n> &\n HTMLMotionProps<'button'> & {\n transition?: Transition;\n };\n\nfunction RadioGroupItem({\n className,\n transition = { type: 'spring', stiffness: 200, damping: 16 },\n ...props\n}: RadioGroupItemProps) {\n return (\n \n \n \n \n \n );\n}\n\nexport {\n RadioGroup,\n RadioGroupItem,\n type RadioGroupProps,\n type RadioGroupItemProps,\n};\n", "type": "registry:ui", "target": "components/animate-ui/radix/radio-group.tsx" } ] }