ant-design/components/radio/index.tsx

18 lines
490 B
TypeScript
Raw Normal View History

import InternalRadio from './radio';
2015-08-21 18:24:09 +08:00
import Group from './group';
import Button from './radioButton';
import { RadioProps } from './interface';
2015-07-16 22:41:27 +08:00
2017-11-21 15:12:03 +08:00
export * from './interface';
interface CompoundedComponent
extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
Group: typeof Group;
Button: typeof Button;
}
const Radio = InternalRadio as CompoundedComponent;
Radio.Button = Button;
Radio.Group = Group;
export { Button, Group };
export default Radio;