1.0.1 • Published 5 years ago

html-inputtypes v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

HTMLInpuTtypes

A tiny packacge to specify HTML input types in a cleaner way.

Usage

Install package

npm install -save html-inputtypes

import package

import INPUT_TYPES from 'html-inputtypes';

use package (React example)

<input type={INPUT_TYPES.TEXT}></input>

Available types

TEXT = "text",\
PASSWORD = "password",\
NUMBER = "number",\
CHECKBOX = "checkbox",\
COLOR = "color",\
DATE = "date",\
DATE_TIME_LOCAL = "datetime-local",\
EMAIL = "email",\
FILE = "file",\
HIDDEN = "hidden",\
IMAGE = "image",\
MONTH = "month",\
RADIO = "radio",\
RANGE = "range",\
RESET = "reset",\
SEARCH = "search",\
SUBMIT = "submit",\
TEL = "tel",\
TIME = "text",\
URL = "url",\
WEEK = "week"