UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

13 lines (12 loc) 500 B
import React from 'react'; import type { CheckboxOptionType, CheckboxValueType } from './Group'; export interface CheckboxGroupContext<T extends CheckboxValueType = CheckboxValueType> { 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<CheckboxValueType> | null>; export default GroupContext;