jb-checkbox
Version:
checkbox web component
14 lines (13 loc) • 593 B
TypeScript
import type { JBCheckboxWebComponent, ValidationValue } from "jb-checkbox";
import type { ValidationItem } from "jb-validation";
import { type 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 | null>, props: JBCheckboxAttributes): void;