import React, { FunctionComponent, InputHTMLAttributes, ReactNode } from 'react'; import Tappable, { ACTIVE_EFFECT_DELAY } from '../Tappable/Tappable'; import getClassName from '../../helpers/getClassName'; import classNames from '../../lib/classNames'; import { IOS } from '../../lib/platform'; import { HasFormLabels, HasRef, HasRootRef } from '../../types'; import usePlatform from '../../hooks/usePlatform'; export interface RadioProps extends InputHTMLAttributes, HasRef, HasRootRef, HasFormLabels { description?: ReactNode; } const Radio: FunctionComponent = (props: RadioProps) => { const { children, description, style, className, getRef, getRootRef, top, bottom, ...restProps } = props; const platform = usePlatform(); return (
{children} {description &&
{description}
}
); }; export default Radio;