HTML Types
The package includes a collection of useful TypeScript types that can help with HTML-related use-cases in browser applications.
Interfaces
SelectOption
Defined in: index.ts:39
Represents an option element’s data. May be used for select, datalist and similar
elements.
Properties
label
label:
string
Defined in: index.ts:41
value
value:
string
Defined in: index.ts:40
Type Aliases
InputType
Defined in: index.ts:5
Valid input types according to the HTML specification.
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
Variables
InputType
constInputType:object
Defined in: index.ts:5
Valid input types according to the HTML specification.
Type declaration
button
readonlybutton:"button"='button'
checkbox
readonlycheckbox:"checkbox"='checkbox'
color
readonlycolor:"color"='color'
date
readonlydate:"date"='date'
datetimeLocal
readonlydatetimeLocal:"datetime-local"='datetime-local'
readonlyemail:"email"='email'
file
readonlyfile:"file"='file'
hidden
readonlyhidden:"hidden"='hidden'
image
readonlyimage:"image"='image'
month
readonlymonth:"month"='month'
number
readonlynumber:"number"='number'
password
readonlypassword:"password"='password'
radio
readonlyradio:"radio"='radio'
range
readonlyrange:"range"='range'
reset
readonlyreset:"reset"='reset'
search
readonlysearch:"search"='search'
submit
readonlysubmit:"submit"='submit'
tel
readonlytel:"tel"='tel'
text
readonlytext:"text"='text'
time
readonlytime:"time"='time'
url
readonlyurl:"url"='url'
week
readonlyweek:"week"='week'
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types