UNPKG

metadata-based-explorer1

Version:
17 lines (11 loc) 428 B
// @flow import * as React from 'react'; import type { FieldProps } from 'formik'; import RadioGroupPrimitive from './RadioGroup'; import type { RadioGroupProps } from './RadioGroup'; type Props = RadioGroupProps & FieldProps; const RadioGroupField = ({ field, form, ...rest }: Props) => { const { value } = field; return <RadioGroupPrimitive key={value} {...field} {...rest} />; }; export default RadioGroupField;