2022-05-07 14:31:54 +08:00
|
|
|
import type * as React from 'react';
|
2015-08-21 18:24:09 +08:00
|
|
|
import Group from './group';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { RadioProps } from './interface';
|
2022-06-22 14:57:09 +08:00
|
|
|
import InternalRadio from './radio';
|
|
|
|
import Button from './radioButton';
|
2015-07-16 22:41:27 +08:00
|
|
|
|
2020-07-27 10:41:32 +08:00
|
|
|
export {
|
2022-06-22 14:57:09 +08:00
|
|
|
RadioChangeEvent,
|
|
|
|
RadioChangeEventTarget,
|
2020-07-27 10:41:32 +08:00
|
|
|
RadioGroupButtonStyle,
|
2022-06-22 14:57:09 +08:00
|
|
|
RadioGroupContextProps,
|
2020-07-27 10:41:32 +08:00
|
|
|
RadioGroupOptionType,
|
|
|
|
RadioGroupProps,
|
|
|
|
RadioProps,
|
|
|
|
} from './interface';
|
2022-06-22 14:57:09 +08:00
|
|
|
export { Button, Group };
|
2020-06-02 14:12:04 +08:00
|
|
|
interface CompoundedComponent
|
|
|
|
extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
|
|
|
|
Group: typeof Group;
|
2020-06-02 20:56:23 +08:00
|
|
|
Button: typeof Button;
|
2022-09-30 14:26:41 +08:00
|
|
|
/** @internal */
|
2022-07-12 19:31:45 +08:00
|
|
|
__ANT_RADIO: boolean;
|
2020-06-02 14:12:04 +08:00
|
|
|
}
|
2017-09-25 22:14:49 +08:00
|
|
|
|
2020-06-02 14:12:04 +08:00
|
|
|
const Radio = InternalRadio as CompoundedComponent;
|
2016-03-21 21:16:38 +08:00
|
|
|
Radio.Button = Button;
|
|
|
|
Radio.Group = Group;
|
2022-07-12 19:31:45 +08:00
|
|
|
Radio.__ANT_RADIO = true;
|
2016-03-21 21:16:38 +08:00
|
|
|
export default Radio;
|