ant-design/components/radio/index.ts
Aleksei Mamaev 59d38ecea6
fix: radioButton ref type (#44747)
* fix: radioButton ref

* fix: added radio types test
2023-09-12 11:40:53 +08:00

33 lines
771 B
TypeScript

import type * as React from 'react';
import Group from './group';
import type { RadioProps, RadioRef } from './interface';
import InternalRadio from './radio';
import Button from './radioButton';
export {
RadioChangeEvent,
RadioChangeEventTarget,
RadioGroupButtonStyle,
RadioGroupContextProps,
RadioGroupOptionType,
RadioGroupProps,
RadioProps,
RadioRef,
} from './interface';
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;