Properties
Optional accept
accept?: string
Optional accesskey
accesskey?: string | string[]
Optional autocapitalize
autocapitalize?: "none" | "off" | "on" | "sentences" | "words" | "characters"
Optional autocomplete
autocomplete?: string
Optional autofocus
autofocus?: boolean
Optional capture
capture?: "user" | "environment"
Optional class
class?: ClassMoniker
Optional contenteditable
contenteditable?: boolean | "true" | "false"
Optional defaultValue
defaultValue?: string
Optional dir
dir?: "ltr" | "rtl" | "auto"
Optional dirname
dirname?: string
Optional disabled
disabled?: boolean
Optional draggable
draggable?: "true" | "false"
Optional enterkeyhint
enterkeyhint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send"
Optional exportparts
exportparts?: string | string[]
Optional formaction
formaction?: string
Optional formnovalidate
formnovalidate?: boolean
Optional formtarget
formtarget?: string
Optional height
height?: number
Optional hidden
hidden?: boolean | "" | "hidden" | "until-found"
Optional inert
inert?: boolean
Optional inputmode
inputmode?: "search" | "none" | "text" | "decimal" | "numeric" | "tel" | "email" | "url"
Optional is
is?: undefined
Optional itemid
itemid?: string
Optional itemprop
itemprop?: string
Optional itemref
itemref?: string | string[]
Optional itemscope
itemscope?: boolean
Optional itemtype
itemtype?: string
Optional lang
lang?: string
Optional max
max?: string | number | Date
Optional maxlength
maxlength?: number
Optional min
min?: string | number | Date
Optional minlength
minlength?: number
Optional multiple
multiple?: boolean
Optional name
name?: string
Optional nonce
nonce?: string
Optional part
part?: string | string[]
Optional pattern
pattern?: string | RegExp
Optional placeholder
placeholder?: string
Optional readonly
readonly?: boolean
Optional required
required?: boolean
Optional resizeObserver
resizeObserver?: ResizeObserverAttrType
Optional role
role?: string
Optional size
size?: number
Optional slot
slot?: string
Optional spellcheck
spellcheck?: "true" | "false" | "default"
Optional step
step?: number | "any"
Optional style
style?: string | Styleset
Optional tabindex
tabindex?: number
Optional title
title?: string
Optional translate
translate?: boolean | "yes" | "no"
Optional type
type?: "number" | "search" | "reset" | "submit" | "date" | "time" | "text" | "color" | "hidden" | "tel" | "email" | "url" | "button" | "checkbox" | "datetime" | "datetime-local" | "file" | "image" | "month" | "password" | "radio" | "range" | "week"
Optional value
value?: string | number | Date
Optional width
width?: number
Optional xmlns
xmlns?: string
Combines
aria-*
properties into one object, so that it is easier (less verbose) to specify them. When this object is serialized to HTML element, each property name is converted to dash-style and prefixed with thearia-
string. The values are always converted to strings according to the following rules: