UNPKG

580 BTypeScriptView Raw
1import React, { memo, forwardRef } from "react";
2import { symToStr } from "tsafe/symToStr";
3import { Fieldset, type FieldsetProps } from "./shared/Fieldset";
4
5export type RadioButtonsProps = Omit<FieldsetProps.Radio, "type">;
6
7/** @see <https://components.react-dsfr.codegouv.studio/?path=/docs/components-radiobutton> */
8export const RadioButtons = memo(
9 forwardRef<HTMLFieldSetElement, RadioButtonsProps>((props, ref) => (
10 <Fieldset ref={ref} {...props} type="radio" />
11 ))
12);
13
14RadioButtons.displayName = symToStr({ RadioButtons });
15
16export default RadioButtons;
17
\No newline at end of file