mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 08:59:40 +08:00
3ed7ec906e
* chore: remove useless tsx support * add * add * style * fix lint * fix lint * fix lint * update locale entry * update locale entry * update locale entry * delete useless style
23 lines
637 B
TypeScript
23 lines
637 B
TypeScript
import type * as React from 'react';
|
|
import type { CheckboxProps } from './Checkbox';
|
|
import InternalCheckbox from './Checkbox';
|
|
import Group from './Group';
|
|
|
|
export type { CheckboxChangeEvent, CheckboxProps } from './Checkbox';
|
|
export type { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
|
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
|
CheckboxProps & React.RefAttributes<HTMLInputElement>
|
|
> & {
|
|
Group: typeof Group;
|
|
/** @internal */
|
|
__ANT_CHECKBOX: boolean;
|
|
};
|
|
|
|
const Checkbox = InternalCheckbox as CompoundedComponent;
|
|
|
|
Checkbox.Group = Group;
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
|
export default Checkbox;
|