jb-input
Version:
input web component with built in validation
18 lines (17 loc) • 632 B
TypeScript
import { JBInputWebComponent, type ValidationValue } from "jb-input";
import { type ValidationItem } from "jb-validation";
import { RefObject } from "react";
export type JBInputAttributes = {
message?: string;
value?: string | number | null | undefined;
validationList?: ValidationItem<ValidationValue>[];
type?: string;
placeholder?: string;
disabled?: boolean;
required?: boolean;
inputmode?: string;
label?: string;
name?: string;
error?: string;
};
export declare function useJBInputAttribute(element: RefObject<JBInputWebComponent>, props: JBInputAttributes): void;