"use client"; import * as React from "react" import * as RadioGroupPrimitive from "@radix-ui/react-radio-group" import { cls } from "../util"; export interface RadioGroupProps { id?: string; children: React.ReactNode; name?: string required?: boolean; disabled?: boolean; /** * Whether keyboard navigation should loop around * @defaultValue false */ loop?: boolean; defaultValue?: string; value?: string; onValueChange?(value: string): void; className?: string; } const RadioGroup = React.forwardRef< React.ElementRef, RadioGroupProps >(({ className, ...props }, ref) => { return ( ) }) RadioGroup.displayName = RadioGroupPrimitive.Root.displayName export interface RadioGroupItemProps { id?: string; value: string; checked?: boolean; required?: boolean; className?: string; disabled?: boolean; } const RadioGroupItem = React.forwardRef< React.ElementRef, RadioGroupItemProps >(({ className, ...props }, ref) => { return (
) }) RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName export { RadioGroup, RadioGroupItem }