1.0.2 • Published 6 years ago

fun-input v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

fun-input

An HTML custom element implementing the <fun-input> element.

fun-input in action

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; 
    }