2022-05-07 14:31:54 +08:00
|
|
|
import type * as React from 'react';
|
|
|
|
import type { CheckboxProps } from './Checkbox';
|
|
|
|
import InternalCheckbox from './Checkbox';
|
2017-03-13 10:20:25 +08:00
|
|
|
import Group from './Group';
|
2016-06-30 10:05:29 +08:00
|
|
|
|
2018-03-08 20:34:40 +08:00
|
|
|
export { CheckboxProps, CheckboxChangeEvent } from './Checkbox';
|
2017-09-25 22:14:49 +08:00
|
|
|
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
|
|
|
2020-11-20 08:58:14 +08:00
|
|
|
interface CompoundedComponent
|
|
|
|
extends React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>> {
|
|
|
|
Group: typeof Group;
|
|
|
|
__ANT_CHECKBOX: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Checkbox = InternalCheckbox as CompoundedComponent;
|
|
|
|
|
2017-03-13 10:20:25 +08:00
|
|
|
Checkbox.Group = Group;
|
2020-11-20 08:58:14 +08:00
|
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
|
|
2017-03-13 10:20:25 +08:00
|
|
|
export default Checkbox;
|