'use client' import { forwardRef, type InputHTMLAttributes } from 'react' import { cn } from '../../lib/cn' export type RadioSize = 'sm' | 'md' const SIZES: Record = { sm: 'size-4', md: 'size-[18px]', } export type RadioProps = Omit, 'size' | 'type'> & { dotSize?: RadioSize invalid?: boolean } /** * A native radio with the dial drawn on it. Grouping, labelling and roving * focus are RadioGroup's job — this is one control. */ export const Radio = forwardRef(function Radio( { className, dotSize = 'md', invalid = false, ...props }, ref, ) { return ( ) })