blob: 5a518c7707c218f222542d96d6482a67359cdd94 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | import type { FC } from 'react';
import { BooleanField, type BooleanFieldProps } from '../boolean-field';
export type RadioProps = Omit<BooleanFieldProps, 'type'>;
/**
 * Radio component
 *
 * Render a radio input type.
 */
export const Radio: FC<RadioProps> = (props) => (
  // eslint-disable-next-line react/jsx-no-literals -- Type allowed
  <BooleanField {...props} type="radio" />
);
 |