Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
/ support-input-type Public archive

Tiny library for testing browser support of type attributes on input tags

License

Notifications You must be signed in to change notification settings

amedia/support-input-type

Repository files navigation

supports-input-type

Tiny library for testing browser support of type attributes on input tags written in typescript.

Usage

Install package:

npm install supports-input-type

Test if the browser support an input type:

import supportsInputType from 'supports-input-type';

if (supportInputType('date')) {
  // render a native <input type="date" />
} else {
  // render a custom date input field
}

License

This library is licensed under the Mozilla Public License Version 2.0.

About

Tiny library for testing browser support of type attributes on input tags

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published