mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
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;
|