ant-design/components/radio/index.tsx

29 lines
618 B
TypeScript
Raw Normal View History

2015-08-21 18:24:09 +08:00
import Group from './group';
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,
RadioRef,
} from './interface';
2022-06-22 14:57:09 +08:00
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;