01
Classic sign in
Email and password on a centred card, with an adorned input and native :user-invalid feedback.
02
Register with strength
Account creation using the new password Strength meter, which fills as the password improves.
03
Forgot password
A single field and an honest message — deliberately vague about whether the address exists.
04
Set a new password
The other half of the reset flow, with the Strength meter and a confirmation field.
05
Two-factor verification
The OTP input handling a six-digit code, with paste support and one-time-code autofill.
06
Passwordless sign in
Email-only sign in, with the sent state shown inline rather than on a separate page.
07
SSO and social sign in
Provider buttons above a divider, with a workspace Combobox for organisations on SAML.
08
Locked session
The return-from-idle screen: identity already known, so only the password is asked for.
Using these
Each form is a standalone page. Copy the markup out of the one you want and drop it into your project — the only requirements are Bootstrap 6’s CSS and, if you use Combobox, Datepicker, OTP, Chips or Range, its JavaScript bundle.
Bootstrap 6 is ESM-only, so the script tag needs type="module" and
there is no window.bootstrap global. Importing the bundle for its side
effects is what registers the data-attribute API.
Validation
.needs-validation and .was-validated are gone. Put
data-bs-validate and novalidate on the form and native
:user-invalid handles the styling — feedback only appears after the
visitor has actually interacted with a field. Add
data-bs-validate="valid" if you also want success styling.
A gotcha worth knowing
Combobox’s search and multiple options are typed
booleans, so a bare attribute fails config validation. Write
data-bs-search="true", not data-bs-search. Bare marker
attributes are correct for data-bs-otp, data-bs-chips,
data-bs-strength and data-bs-validate.