import { forwardRef, useId } from 'react' import type { ReactNode } from 'react' import { Box, BoxProps } from '../Box' import { cx } from '../classnames' export interface RadioButtonProps extends BoxProps { checked: boolean name: string value: string onChange: (value: string) => void disabled?: boolean children: ReactNode autoFocus?: boolean } export let RadioButton = forwardRef(function RadioButton( { checked, onChange, value, name, disabled, children, autoFocus, ...props }: RadioButtonProps, ref, ) { let id = useId() return ( {children} ) }) export default RadioButton