@nnc-digital/nnc-design-system
Version:
Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.
27 lines (26 loc) • 519 B
TypeScript
export interface RadioCheckboxInputProps {
/**
* Is the input checked?
*/
checked: boolean;
/**
* The label for the input
*/
label: string;
/**
* The name of the input
*/
name: string;
/**
* The on change function
*/
onChange?: React.ReactNode | ((e: any) => void);
/**
* Is this a single selection, if true radio, if false checkbox
*/
singleSelection: boolean;
/**
* The value of the input
*/
value: string;
}