ant-design/components/radio/index.tsx

27 lines
678 B
TypeScript
Raw Normal View History

import * as React from 'react';
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
export {
RadioGroupButtonStyle,
RadioGroupOptionType,
RadioGroupProps,
RadioGroupContextProps,
RadioProps,
RadioChangeEventTarget,
RadioChangeEvent,
} 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;