Skip to content

Pure implementation of Float Label pattern (compatible with Bootstrap 4).

Notifications You must be signed in to change notification settings

mits87/float-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

float-placeholder

Floating label input.

Checkout the DEMO

Install it:

npm install --save float-placeholder

Usage:

require('jquery');
require('float-placeholder');

$('[name="email"]').floatPlaceholder();
<div class="form-group--float-label">
  <input type="email" name="email" value="" placeholder="E-mail" data-float-placeholder="true">
  <label class="float-label float-label--active" for="email">E-mail</label>
</div>
@import '~float-placeholder/src/scss/float-placeholder';

Compiled version:

<script src="./node_modules/float-placeholder/js/float-placeholder.min.js"></script>
<link rel="stylesheet" href="./node_modules/float-placeholder/build/css/float-placeholder.min.css">

Building and running:

  gulp

License:

MIT

About

Pure implementation of Float Label pattern (compatible with Bootstrap 4).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published