All Projects → tkrotoff → bootstrap-floating-label

tkrotoff / bootstrap-floating-label

Licence: MIT License
Bootstrap 5 Floating Label

Programming Languages

HTML
75241 projects
SCSS
7915 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to bootstrap-floating-label

react-native-floating-label-input
A customizable React Native TextInput with its placeholder always shown. Includes masks, global styles, character count, and a bunch else.
Stars: ✭ 206 (+758.33%)
Mutual labels:  label, floating
Wordle2Townscaper
Wordle2Townscaper is meant to convert Wordle tweets into Townscaper houses using yellow and green building blocks.
Stars: ✭ 64 (+166.67%)
Mutual labels:  bootstrap5
bootiful
Open-source, bare, modern Bootstrap v5 theme
Stars: ✭ 47 (+95.83%)
Mutual labels:  bootstrap5
Bootstrap-tutorial-for-beginners
Learn the main features of the most powerful mobile framework.
Stars: ✭ 19 (-20.83%)
Mutual labels:  bootstrap5
zplgfa
#Golang package and cli tool for converting to #ZPL (from PNG, JPEG and GIF) for @ZebraTechnology-printers
Stars: ✭ 29 (+20.83%)
Mutual labels:  label
simple-image-classifier
Simple image classifier microservice using tensorflow and sanic
Stars: ✭ 22 (-8.33%)
Mutual labels:  label
dependent-issues
📦 A GitHub Action for marking issues as dependent on another
Stars: ✭ 83 (+245.83%)
Mutual labels:  label
FTerm.nvim
🔥 No-nonsense floating terminal plugin for neovim 🔥
Stars: ✭ 353 (+1370.83%)
Mutual labels:  floating
bootstrap-cheatsheet
The ultimate cheatsheet for Bootstrap5 🚀
Stars: ✭ 236 (+883.33%)
Mutual labels:  bootstrap5
angular-spa
.NET 6.0 Angular 13 CLI Bootstrap 5 App
Stars: ✭ 65 (+170.83%)
Mutual labels:  bootstrap5
mazer-nuxt
Nuxt 2 version of Mazer - Free Bootstrap 5 Admin Dashboard Template and Landing Page
Stars: ✭ 39 (+62.5%)
Mutual labels:  bootstrap5
hope-ui-design-system
Hope UI - Open Source Bootstrap 5 Design System
Stars: ✭ 37 (+54.17%)
Mutual labels:  bootstrap5
flask-volt-dashboard
Flask Bootstrap 5 - Volt Dashboard | AppSeed
Stars: ✭ 124 (+416.67%)
Mutual labels:  bootstrap5
FOTextLayout
实现文字横竖向切换,实现各种文字的排版,可以某种程度上替代UILabel。
Stars: ✭ 36 (+50%)
Mutual labels:  label
netlicensing.io
Labs64 NetLicensing - Innovative License Management Solution
Stars: ✭ 13 (-45.83%)
Mutual labels:  floating
label-actions
🤖 GitHub Action that performs certain tasks when issues, pull requests or discussions are labeled or unlabeled
Stars: ✭ 60 (+150%)
Mutual labels:  label
TextInputLayout
The objective of this code is to guide you to create login screen with TextInputLayout in iOS app.
Stars: ✭ 30 (+25%)
Mutual labels:  floating
angular-pwa
Angular 13 Example Progressive Web App (PWA)
Stars: ✭ 45 (+87.5%)
Mutual labels:  bootstrap5
JXWeChatFloatView
高仿微信文章悬浮球
Stars: ✭ 96 (+300%)
Mutual labels:  float
WaveLabelDemo
波浪经过文字,文字改变颜色。Waves pass through words, and words change colours.
Stars: ✭ 58 (+141.67%)
Mutual labels:  label

@tkrotoff/bootstrap-floating-label

npm version Node.js CI Prettier Airbnb Code Style

Floating label for Bootstrap 5

demo

Example: https://codesandbox.io/s/github/tkrotoff/bootstrap-floating-label/tree/codesandbox.io

  • Small: less than 200 lines of SCSS
  • Works with Chrome/Chromium, Firefox, Safari and IE
  • Works with any font family and size
  • Uses Bootstrap variables

⚠️ Latest implementation for Bootstrap 4 is @tkrotoff/bootstrap-floating-label v0.8

The Nielsen Norman Group talks about "Placeholders and Floating Labels disadvantages"

Usage

npm install @tkrotoff/bootstrap-floating-label

Import bootstrap-floating-label.scss after bootstrap.scss:

@import '~bootstrap/scss/bootstrap';

@import '~@tkrotoff/bootstrap-floating-label/src/bootstrap-floating-label';

Place <label> under <input> inside your Bootstrap code:

<div class="floating-label">
  <input type="email" id="email" class="form-control" placeholder="[email protected]">
  <label for="email">Email</label>
</div>

Limitations

There is no good way to detect if the user entered text inside an input using CSS.

Thus a placeholder is required <input placeholder=" "> otherwise the label will be above the input instead of inside (see https://codepen.io/tkrotoff/pen/KjgyZj).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].