ant-design/components/radio/index.ts

33 lines
771 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, RadioRef } 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,
RadioRef,
} from './interface';
2022-06-22 14:57:09 +08:00
export { Button, Group };
type CompoundedComponent = React.ForwardRefExoticComponent<
RadioProps & React.RefAttributes<RadioRef>
> & {
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;