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.
34 lines
767 B
34 lines
767 B
1 year ago
|
'use client';
|
||
|
|
||
3 years ago
|
import type * as React from 'react';
|
||
9 years ago
|
import Group from './group';
|
||
3 years ago
|
import type { RadioProps } from './interface';
|
||
2 years ago
|
import InternalRadio from './radio';
|
||
|
import Button from './radioButton';
|
||
9 years ago
|
|
||
4 years ago
|
export {
|
||
2 years ago
|
RadioChangeEvent,
|
||
|
RadioChangeEventTarget,
|
||
4 years ago
|
RadioGroupButtonStyle,
|
||
2 years ago
|
RadioGroupContextProps,
|
||
4 years ago
|
RadioGroupOptionType,
|
||
|
RadioGroupProps,
|
||
|
RadioProps,
|
||
|
} from './interface';
|
||
2 years ago
|
export { Button, Group };
|
||
2 years ago
|
|
||
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
||
|
RadioProps & React.RefAttributes<HTMLElement>
|
||
|
> & {
|
||
5 years ago
|
Group: typeof Group;
|
||
5 years ago
|
Button: typeof Button;
|
||
2 years ago
|
/** @internal */
|
||
2 years ago
|
__ANT_RADIO: boolean;
|
||
2 years ago
|
};
|
||
7 years ago
|
|
||
5 years ago
|
const Radio = InternalRadio as CompoundedComponent;
|
||
9 years ago
|
Radio.Button = Button;
|
||
|
Radio.Group = Group;
|
||
2 years ago
|
Radio.__ANT_RADIO = true;
|
||
9 years ago
|
export default Radio;
|