Properties
Optional accesskey
accesskey?: string | string[]
Optional autocapitalize
autocapitalize?: "none" | "off" | "on" | "sentences" | "words" | "characters"
Optional autofocus
autofocus?: boolean
Optional autoplay
autoplay?: boolean
Optional buffered
buffered?: boolean
Optional class
class?: ClassMoniker
Optional contenteditable
contenteditable?: boolean | "true" | "false"
Optional controls
controls?: boolean
Optional dir
dir?: "ltr" | "rtl" | "auto"
Optional draggable
draggable?: "true" | "false"
Optional enterkeyhint
enterkeyhint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send"
Optional exportparts
exportparts?: string | 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 loop
loop?: boolean
Optional muted
muted?: boolean
Optional nonce
nonce?: string
Optional part
part?: string | string[]
Optional playsinline
playsinline?: boolean
Optional poster
poster?: string
Optional preload
preload?: "" | "none" | "auto" | "metadata"
Optional resizeObserver
resizeObserver?: ResizeObserverAttrType
Optional role
role?: string
Optional slot
slot?: string
Optional spellcheck
spellcheck?: "true" | "false" | "default"
Optional style
style?: string | Styleset
Optional tabindex
tabindex?: number
Optional title
title?: string
Optional translate
translate?: boolean | "yes" | "no"
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: