# bootstrap-float-label

> Pure CSS implementation of Float Label pattern for Bootstrap 3.

Latest version **3.0.1** (published 2017-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install bootstrap-float-label
pnpm add bootstrap-float-label
yarn add bootstrap-float-label
bun add bootstrap-float-label
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2017-06-24 |
| First published | 2016-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 131 |
| Author | Anton Staroverov |
| Maintainers | tonystar |
| Keywords | bootstrap, bootstrap-4, bootstrap4, float-label, floatlabel, css-only, cssonly |

## Links

- npm: https://www.npmjs.com/package/bootstrap-float-label
- Repository: https://github.com/tonystar/bootstrap-float-label
- Homepage: https://github.com/tonystar/bootstrap-float-label#readme
- Issues: https://github.com/tonystar/bootstrap-float-label/issues
- npm.io page: https://npm.io/package/bootstrap-float-label

## Dependencies (1)

- [float-label-css](https://npm.io/package/float-label-css.md) 1.0.2

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads
- [@modern-js/plugin-swc](https://npm.io/package/@modern-js/plugin-swc.md) — 3.4K weekly downloads

## Recent versions

- 3.0.1 (latest) — 2017-06-24
- 4.0.2 — 2017-06-12
- 4.0.1 — 2016-10-20
- 3.0.0 — 2016-10-12
- 4.0.0 — 2016-10-11
- 1.0.0 — 2016-10-11
- 1.0.0-dev — 2016-10-11

## README

Bootstrap Float Label
=====================

Pure CSS implementation of Float Label pattern for Bootstrap 3 powered by [Float Label CSS-only](https://github.com/tonystar/float-label-css).

[Switch to Bootstrap 4](https://github.com/tonystar/bootstrap-float-label)

<img src="https://cdn.rawgit.com/tonystar/bootstrap-float-label/0ab4260/bootstrap-float-label.png" width="374"/>


## Demo

https://codepen.io/tonystar/pen/ALaZrV


## Usage

Include `bootstrap-float-label.min.css`:
```html
<link rel="stylesheet" href="https://cdn.rawgit.com/tonystar/bootstrap-float-label/v3.0.1/dist/bootstrap-float-label.min.css"/>
```

Then just add `.has-float-label` class to `.form-group`:
```html
<span class="form-group has-float-label">
  <input class="form-control" id="email" type="email" placeholder="email@example.com"/>
  <label for="email">Email</label>
</span>
```

**NOTE:** `label` should go after `input`! This is the only drawback in this method.

Using inside `.input-group` is also supported:
```html
<div class="form-group input-group">
  <span class="has-float-label">
    <input class="form-control" id="first" type="text" placeholder="Name"/>
    <label for="first">First</label>
  </span>
  <span class="has-float-label">
    <input class="form-control" id="last" type="text" placeholder="Surname"/>
    <label for="last">Last</label>
  </span>
</div>
```


## Browser support

ANY browser. See [Float Label CSS-only docs](https://github.com/tonystar/float-label-css#browser-support) for more details.

---
_Source: https://npm.io/package/bootstrap-float-label · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
