Settings

* except Analytics

Type to listen to my time signal service (powered by your computer’s clock)!

🔗 <url-input>

A Web Component to add a protocol to URL inputs.
There are two stargazers on GitHub and it has over 650 downloads on npm.

Unfortunately, this Web Component requires JavaScript to function correctly!

Try it out by entering a URL without a protocol (http:// or https://) in this input box!

url-input on GitHub url-input Releases url-input License

Features Permalink

<url-input> is a native Web Component to add a protocol to URL inputs.

Check out the demo page.

Installation Permalink

Install the package, which is available on npm:

npm install @chrisburnell/url-input

You can also download it directly from GitHub:

https://github.com/chrisburnell/url-input/archive/main.zip

Usage Permalink

You start using the <url-input> Web Component by including a <script> tag in your HTML:

<script type="module" src="/url-input.js"></script>

General usage example

<url-input><input type="url"></url-input>

Force HTTPS

<url-input force-https><input type="url"></url-input>

You can also send an anonymous reply (using Quill and Comment Parade).

Latest projects

Browse Projects →