Giter Club home page Giter Club logo

floating-label-input's Introduction

floating-label-input

NPM

Published on webcomponents.org

Floating label input web component.

Install

$ npm install @yishiashia/floating-label-input

Syntax

<script src="fl-input.js"></script>

<form action="#" method="POST">
    <fl-input
        name="username"
        type="text"
        placeholder="Please enter your name"
        height="50"
    >
    </fl-input>
    <fl-input
        name="username"
        type="password"
        placeholder="Please enter your password"
        height="50"
    >
    </fl-input>
    <input type="submit" value="submit" />
</form>

Demo page

The demo page: https://yishiashia.github.io/floating-label-input/

Usage

If you want to customize this web component, you can import the library and implement your new class by extend FLInput.

import FLInput from "floating-label-input";

class customizedFLInput extends FLInput {
    // override here
}

Options

name

The name of input, it would be the POST parameter name.

placeholder

The floating label of input field.

height (optional)

The height of input field (unit: pixel).

type (optional)

The input type, default text.

floating-label-input's People

Contributors

yishiashia avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.