Skip to main content
Version: 0.1.1

Interface: HTMLValidationAttrs

Imported from @react-logic/utils

Subset of input HTML attributes that ride along with a validator.

Properties​

inputMode?​

optional inputMode?: "search" | "text" | "url" | "email" | "tel" | "none" | "decimal" | "numeric"


max?​

optional max?: string | number


maxLength?​

optional maxLength?: number


min?​

optional min?: string | number


minLength?​

optional minLength?: number


pattern?​

optional pattern?: string


required?​

optional required?: boolean


step?​

optional step?: string | number


type?​

optional type?: "number" | "search" | "text" | "url" | "email" | "tel" | "password" | "date" | "datetime-local" | "time" | "week" | "month" | "color" | "checkbox" | "radio"