šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

fun-input

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fun-input

A custom element for text inputs

1.0.2
latest
Source
npm
Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
Ā 
Created
Source

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

Keywords

fun-input

FAQs

Package last updated on 15 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts