@engie-group/fluid-design-system-react
Version:
Fluid Design System React
47 lines (46 loc) • 1.01 kB
TypeScript
import React from 'react';
import { TSizeVariants } from '../../global';
export declare const NJRadio: React.ForwardRefExoticComponent<IRadioProps & React.RefAttributes<HTMLInputElement>>;
export interface IRadioProps {
/**
* Radio size
**/
size?: Extract<TSizeVariants, 'md' | 'lg' | 'xl'>;
/**
* Radio label
*/
label?: string;
/**
* Whether the radio is checked or not
*/
isChecked?: boolean;
/**
* Whether the radio is disabled or not
*/
isDisabled?: boolean;
/**
* Whether input is required or not
*/
isRequired?: boolean;
/**
* Aria label, for accessibility reasons
*/
ariaLabel?: string;
/**
* Aria labelled by, for accessibility reasons
*/
ariaLabelledBy?: string;
/**
* Input id
*/
id?: string;
/**
* Input name
*/
name: string;
/**
* Input value
*/
value: string;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
}