You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
688 B

import type * as React from 'react';
import InternalRadio from './radio';
import Group from './group';
import Button from './radioButton';
import type { RadioProps } from './interface';
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;