mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 08:19:37 +08:00
b3d0f1d2c6
* refactor(checkbox): rewrite with hook * Update index.test.js.snap * Update Group.tsx
19 lines
547 B
TypeScript
19 lines
547 B
TypeScript
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;
|