mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
18 lines
489 B
TypeScript
18 lines
489 B
TypeScript
import InternalRadio from './radio';
|
|
import Group from './group';
|
|
import Button from './radioButton';
|
|
import { RadioProps } from './interface';
|
|
|
|
export * from './interface';
|
|
interface CompoundedComponent
|
|
extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
|
|
Group: typeof Group;
|
|
Button: typeof Group;
|
|
}
|
|
|
|
const Radio = InternalRadio as CompoundedComponent;
|
|
Radio.Button = Button;
|
|
Radio.Group = Group;
|
|
export { Button, Group };
|
|
export default Radio;
|