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.
|
|
|
import * as React from 'react';
|
|
|
|
import InternalCheckbox, { CheckboxProps } from './Checkbox';
|
|
|
|
import Group from './Group';
|
|
|
|
|
|
|
|
export { CheckboxProps, CheckboxChangeEvent } from './Checkbox';
|
|
|
|
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
|
|
|
|
|
|
interface CompoundedComponent
|
|
|
|
extends React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>> {
|
|
|
|
Group: typeof Group;
|
|
|
|
__ANT_CHECKBOX: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Checkbox = InternalCheckbox as CompoundedComponent;
|
|
|
|
|
|
|
|
Checkbox.Group = Group;
|
|
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
|
|
|
|
|
export default Checkbox;
|