@engie-group/fluid-design-system-react
Version:
Fluid Design System React
39 lines (38 loc) • 1.08 kB
TypeScript
import React from 'react';
import { IRadioProps } from './NJRadio';
export declare const NJRadioGroup: React.ForwardRefExoticComponent<IRadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
export interface IRadioGroupProps {
/**
* Whether the radio group should be displayed in column or row
*/
orientation?: 'column' | 'row';
/**
* Radio group selected radio component by id
*/
checkedId?: IRadioProps['id'];
/**
* Legend to label the radio group
*/
legend: string;
/**
* Message to provide when radio group is in error state
*/
errorMessage?: string;
/**
* Whether the input group is in error state
*/
hasError?: boolean;
/**
* Whether the fieldset is disabled
*/
isDisabled?: boolean;
/**
* All children radio components
**/
children: React.ReactElement<IRadioProps>[];
onChange?: (id: string, value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
/**
* Optional additional className
**/
className?: string;
}