Fix docs compilation to avoid duplicate IDs

This commit is contained in:
Julien Déramond 2025-09-04 22:30:39 +02:00
parent 72ee1af96a
commit 8915efae15
No known key found for this signature in database
GPG Key ID: EE5F274EA1F477FA
1 changed files with 4 additions and 4 deletions

View File

@ -134,12 +134,12 @@ When using `.input-group` and `.form-floating` along with form validation, the `
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