UNPKG

jb-checkbox

Version:
14 lines (13 loc) 581 B
import { JBCheckboxWebComponent, type ValidationValue } from "jb-checkbox"; import { type ValidationItem } from "jb-validation"; import { RefObject } from "react"; export type JBCheckboxAttributes = { name?: string; value?: boolean | null | undefined; message?: string | null | undefined; error?: string | null | undefined; validationList?: ValidationItem<ValidationValue>[] | null; disabled?: boolean; required?: boolean; }; export declare function useJBCheckboxAttribute(element: RefObject<JBCheckboxWebComponent>, props: JBCheckboxAttributes): void;