GitHubLinkedIn
TypeScript

TypeScript Form Enums

Ethan Glover

HTML Input Types

HTML Autocomplete Attributes

1export enum AutoComplete {
2 off = "off",
3 on = "on",
4 name = "name",
5 honorificPrefix = "honorific-prefix",
6 givenName = "given-name",
7 additonalName = "additional-name",
8 familyName = "family-name",
9 honorificSuffix = "honorific-suffix",
10 nickname = "nickname",
11 email = "email",
12 username = "username",
13 newPassword = "new-password",
14 currentPassword = "current-password",
15 oneTimeCode = "one-time-code",
16 organizationTitle = "organization-title",
17 organization = "organization",
18 streetAddress = "street-address",
19 addressLine1 = "address-line1",
20 addressLine2 = "address-line2",
21 addressLine3 = "address-line3",
22 addressLevel4 = "address-level4",
23 addressLevel3 = "address-level3",
24 addressLevel2 = "address-level2",
25 addressLevel1 = "address-level1",
26 country = "country",
27 countryName = "country-name",
28 postalCode = "postal-code",
29 ccName = "cc-name",
30 ccGivenName = "cc-given-name",
31 ccAdditionalName = "cc-additional-name",
32 ccFamilyName = "cc-family-name",
33 ccNumber = "cc-number",
34 ccExp = "cc-exp",
35 ccExpMonth = "cc-exp-month",
36 ccExpYear = "cc-exp-year",
37 ccCsc = "cc-csc",
38 ccType = "cc-type",
39 transactionCurrency = "transaction-currency",
40 transactionAmount = "transaction-amount",
41 language = "language",
42 bday = "bday",
43 bdayDay = "bday-day",
44 bdayMonth = "bday-month",
45 bdayYear = "bday-year",
46 sex = "sex",
47 tel = "tel",
48 telCountryCode = "tel-country-code",
49 telNational = "tel-national",
50 telAreaCode = "tel-area-code",
51 telLocal = "tel-local",
52 telExtension = "tel-extension",
53 impp = "impp",
54 url = "url",
55 photo = "photo"
56}
1export enum InputTypes {
2 button = "button",
3 checkbox = "checkbox",
4 color = "color",
5 date = "date",
6 datetimeLocal = "datetime-local",
7 email = "email",
8 file = "file",
9 hidden = "hidden",
10 image = "image",
11 month = "month",
12 number = "number",
13 password = "password",
14 radio = "radio",
15 range = "range",
16 reset = "reset",
17 search = "search",
18 submit = "submit",
19 tel = "tel",
20 text = "text",
21 time = "time",
22 url = "url",
23 week = "week"
24}