UNPKG

jb-number-input-react

Version:
16 lines (15 loc) 561 B
import { JBInputWebComponent, ValidationItem } from "jb-input"; import { ValidationValue } from "jb-input/types"; import { RefObject } from "react"; export type JBInputAttributes = { message?: string; value: string | number | null | undefined; validationList?: ValidationItem<ValidationValue>[]; type?: string; placeholder?: string; disabled?: boolean; inputmode?: string; label?: string; name?: string; }; export declare function useJBInputAttribute(element: RefObject<JBInputWebComponent>, props: JBInputAttributes): void;