mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
20 lines
579 B
TypeScript
20 lines
579 B
TypeScript
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;
|