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.
33 lines
767 B
33 lines
767 B
'use client';
|
|
|
|
import type * as React from 'react';
|
|
import Group from './group';
|
|
import type { RadioProps } from './interface';
|
|
import InternalRadio from './radio';
|
|
import Button from './radioButton';
|
|
|
|
export {
|
|
RadioChangeEvent,
|
|
RadioChangeEventTarget,
|
|
RadioGroupButtonStyle,
|
|
RadioGroupContextProps,
|
|
RadioGroupOptionType,
|
|
RadioGroupProps,
|
|
RadioProps,
|
|
} from './interface';
|
|
export { Button, Group };
|
|
|
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
|
RadioProps & React.RefAttributes<HTMLElement>
|
|
> & {
|
|
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;
|
|
|