jb-image-input
Version:
image input web component
19 lines (18 loc) • 771 B
TypeScript
import { JBImageInputWebComponent, type JBImageInputBridge, type JBImageInputConfig, type ValidationValue } from "jb-image-input";
import { type ValidationItem } from "jb-validation";
import { RefObject } from "react";
export type JBImageInputAttributes<TValue> = {
validationList?: ValidationItem<ValidationValue<TValue>>[];
config?: JBImageInputConfig;
value?: TValue;
bridge?: JBImageInputBridge<TValue>;
multiple?: boolean;
name?: string;
file?: File;
acceptTypes?: string;
maxFileSize?: number;
required?: boolean | string;
label?: string;
message?: string;
};
export declare function useJBImageInputAttribute<TValue>(element: RefObject<JBImageInputWebComponent<TValue>>, props: JBImageInputAttributes<TValue>): void;