mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-12 11:55:23 +08:00
26 lines
646 B
TypeScript
26 lines
646 B
TypeScript
import InternalRadio from './radio';
|
|
import Group from './group';
|
|
import Button from './radioButton';
|
|
import { RadioProps } from './interface';
|
|
|
|
export {
|
|
RadioGroupButtonStyle,
|
|
RadioGroupOptionType,
|
|
RadioGroupProps,
|
|
RadioGroupContextProps,
|
|
RadioProps,
|
|
RadioChangeEventTarget,
|
|
RadioChangeEvent,
|
|
} from './interface';
|
|
interface CompoundedComponent
|
|
extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
|
|
Group: typeof Group;
|
|
Button: typeof Button;
|
|
}
|
|
|
|
const Radio = InternalRadio as CompoundedComponent;
|
|
Radio.Button = Button;
|
|
Radio.Group = Group;
|
|
export { Button, Group };
|
|
export default Radio;
|