ant-design/components/radio/index.tsx
2024-08-02 18:49:30 +08:00

29 lines
623 B
TypeScript

import Group from './group';
import InternalRadio from './radio';
import Button from './radioButton';
export type {
RadioChangeEvent,
RadioChangeEventTarget,
RadioGroupButtonStyle,
RadioGroupContextProps,
RadioGroupOptionType,
RadioGroupProps,
RadioProps,
RadioRef,
} from './interface';
export { Button, Group };
type CompoundedComponent = typeof InternalRadio & {
Group: typeof Group;
Button: typeof Button;
/** @internal */
__ANT_RADIO: boolean;
};
const Radio = InternalRadio as CompoundedComponent;
Radio.Button = Button;
Radio.Group = Group;
Radio.__ANT_RADIO = true;
export default Radio;