Make any `.form-control` always use a floating label with visible placeholder with the `.form-floating-always` modifier class. Visible placeholders use the default input `color` and lighten to the placeholder color on focus. This matches them with other floating labels built with plaintext inputs and selects.
<Example code={`<div class="form-floating form-floating-always mb-3">
- <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
- <label for="floatingInput">Email address</label>
+ <input type="email" class="form-control" id="alwaysFloatingInput" placeholder="name@example.com">
+ <label for="alwaysFloatingInput">Email address</label>
</div>
<div class="form-floating form-floating-always">
- <input type="password" class="form-control" id="floatingPassword" placeholder="••••••••">
- <label for="floatingPassword">Password</label>
+ <input type="password" class="form-control" id="alwaysFloatingPassword" placeholder="••••••••">
+ <label for="alwaysFloatingPassword">Password</label>
</div>`} />
## Layout