aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/forms/fields/radio/radio.tsx
blob: 6430b4ae527540d4f3253b9d7c8d97e1cf97bc55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { FC } from 'react';
import { BooleanField, BooleanFieldProps } from '../boolean-field';

export type RadioProps = Omit<BooleanFieldProps, 'type'>;

/**
 * Radio component
 *
 * Render a radio input type.
 */
export const Radio: FC<RadioProps> = (props) => (
  <BooleanField {...props} type="radio" />
);