acud
Version:
acg react 组件库
21 lines (20 loc) • 632 B
TypeScript
import React from 'react';
import RadioButton from './RadioButton';
import RadioGroup from './RadioGroup';
export interface RadioProps {
checked?: boolean;
prefixCls?: string;
disabled?: boolean | undefined;
children?: React.ReactNode;
label?: string;
className?: string;
onChange?: (e: Event) => {} | void;
value?: any;
limit?: number | boolean;
}
interface CompoundedComponent extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
Group: typeof RadioGroup;
Button: typeof RadioButton;
}
declare const Radio: CompoundedComponent;
export default Radio;