/* eslint-disable jsx-a11y/label-has-associated-control */ "use client"; import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"; import type { VariantProps } from "class-variance-authority"; import { Circle } from "lucide-react"; import { forwardRef } from "react"; import { cn } from "@/libs/utils"; import { circleVariant, labelVariants, radioVariants, } from "./radio-group.variants"; export interface RadioGroupProps extends React.ComponentPropsWithoutRef, VariantProps, VariantProps { label?: string; children?: React.ReactNode; id?: string; } const RadioGroup = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => { return ( ); }); RadioGroup.displayName = RadioGroupPrimitive.Root.displayName; const RadioGroupItem = forwardRef( ( { className, variant, size, label, labelTextSize, children, id, ...props }, ref, ) => { return (
{/* eslint-disable-next-line jsx-a11y/label-has-associated-control */} {children ? (
{children}
) : ( )}
); }, ); RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName; export { RadioGroup, RadioGroupItem };