mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
e74661f509
* refactor: resolve circular reference of Checkbox * chore: add export
16 lines
416 B
TypeScript
16 lines
416 B
TypeScript
import React from 'react';
|
|
import type { CheckboxOptionType } from './Group';
|
|
|
|
export interface CheckboxGroupContext {
|
|
name?: string;
|
|
toggleOption?: (option: CheckboxOptionType) => void;
|
|
value?: any;
|
|
disabled?: boolean;
|
|
registerValue: (val: string) => void;
|
|
cancelValue: (val: string) => void;
|
|
}
|
|
|
|
const GroupContext = React.createContext<CheckboxGroupContext | null>(null);
|
|
|
|
export default GroupContext;
|