@aveonline/ui-react
Version:
Home base for Aveonline design system - ecosystem react
41 lines (40 loc) • 749 B
TypeScript
import { IColorText } from '../../../types';
declare type Change = {
value: string | number;
checked: boolean;
};
interface IPropsRadio extends IColorText {
/**
* ID unique
*/
id?: string;
/**
* Name unique
*/
name?: string;
/**
* Control for disabled radio
*/
isDisabled?: boolean;
/**
* Value radio
*/
value?: string | number;
/**
* Option for checked
*/
checked?: boolean;
/**
* Label string link with radio
*/
label?: string;
/**
* Help text for more info
*/
helpText?: string;
/**
* Event for control to checked and value
*/
onChange?: (value: Change) => void;
}
export type { IPropsRadio };