minishouyin/node_modules/antd/es/checkbox/GroupContext.d.ts

13 lines
427 B
TypeScript
Raw Normal View History

2025-11-12 11:35:57 +08:00
import React from 'react';
import type { CheckboxOptionType } from './Group';
export interface CheckboxGroupContext<T = any> {
name?: string;
toggleOption?: (option: CheckboxOptionType<T>) => void;
value?: any;
disabled?: boolean;
registerValue: (val: T) => void;
cancelValue: (val: T) => void;
}
declare const GroupContext: React.Context<CheckboxGroupContext<any> | null>;
export default GroupContext;