ant-design/components/radio/index.tsx

29 lines
738 B
TypeScript
Raw Normal View History

import type * as React from 'react';
2015-08-21 18:24:09 +08:00
import Group from './group';
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
export {
2022-06-22 14:57:09 +08:00
RadioChangeEvent,
RadioChangeEventTarget,
RadioGroupButtonStyle,
2022-06-22 14:57:09 +08:00
RadioGroupContextProps,
RadioGroupOptionType,
RadioGroupProps,
RadioProps,
} from './interface';
2022-06-22 14:57:09 +08:00
export { Button, Group };
interface CompoundedComponent
extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
Group: typeof Group;
Button: typeof Button;
__ANT_RADIO: boolean;
}
const Radio = InternalRadio as CompoundedComponent;
Radio.Button = Button;
Radio.Group = Group;
Radio.__ANT_RADIO = true;
export default Radio;