@hhgtech/hhg-components
Version:
Hello Health Group common components
27 lines (26 loc) • 747 B
TypeScript
import React from 'react';
export type RadioGroupOption = Array<{
label: string;
value: string;
renderActivated?: () => JSX.Element;
}>;
export type Props = {
options: RadioGroupOption;
value?: string;
id: string;
className?: string;
isDisabled?: boolean;
size?: 'small' | 'large';
direction?: 'vertical' | 'horizontal';
group?: 'group1' | 'group2';
type?: string;
onChange?: (v: string) => void;
dataEventCategory?: string;
dataEventAction?: string;
dataEventLabel?: string;
};
export type ResetHandle = {
reset: () => void;
};
declare const RadioGroup: React.ForwardRefExoticComponent<Props & React.RefAttributes<ResetHandle>>;
export { RadioGroup };