@cfxjs/react-ui
Version:
Modern and minimalist React UI library.
10 lines (9 loc) • 319 B
TypeScript
import React from 'react';
export interface CheckboxConfig {
updateState?: (value: string, checked: boolean) => void;
disabledAll: boolean;
values: string[];
inGroup: boolean;
}
export declare const CheckboxContext: React.Context<CheckboxConfig>;
export declare const useCheckbox: () => CheckboxConfig;