fun-input
v1.0.2
Published
A custom element for text inputs
Downloads
10
Readme
fun-input
An HTML custom element implementing the <fun-input>
element.
Setup
Installation
npm i fun-input
<script src="node_modules/fun-input/fun-input.js"></script>
or if you're bundling
import "fun-input";
// or
require("fun-input");
Usage
<fun-input type="text" name="funInput" placeholder="Enter text here..."></fun-input>
<fun-input type="password" name="funInput2" placeholder="Enter password here..."></fun-input>
Customization
You can customize the color of the fun-input
by assigning values to css elements.
The who css elements that affect fun-input
are --fun-input-color
and --primary-color
.
You can set there values like so
:root {
--fun-input-color: red; /* if both are set --fun-input-color takes precedence */
--primary-color: red;
}