@engie-group/fluid-design-system-react
Version:
Fluid Design System React
38 lines (37 loc) • 975 B
TypeScript
import { Scale } from '@engie-group/fluid-types';
import React from 'react';
import { WithHTMLAttributes } from '../../utils/typeHelpers';
export declare const NJRadio: React.ForwardRefExoticComponent<import("../../utils/typeHelpers").HTMLAttributesWithoutComponentProps<"input", NJRadioOwnProps> & NJRadioRef & {
/**
* Radio size
**/
scale?: Extract<Scale, "md" | "lg" | "xl">;
/**
* Radio label
*/
label?: string;
/**
* Input value
*/
value: string;
} & React.RefAttributes<HTMLInputElement>>;
type NJRadioRef = {
rootRef?: React.Ref<HTMLDivElement>;
labelRef?: React.Ref<HTMLLabelElement>;
};
type NJRadioOwnProps = NJRadioRef & {
/**
* Radio size
**/
scale?: Extract<Scale, 'md' | 'lg' | 'xl'>;
/**
* Radio label
*/
label?: string;
/**
* Input value
*/
value: string;
};
export type NJRadioProps = WithHTMLAttributes<NJRadioOwnProps, 'input'>;
export {};