Examples of Bootstrap’s documentation-specific components and styles.
Bootstrap includes many CSS custom properties (variables) in its compiled CSS for real-time customization without the need to recompile Sass. These provide easy access to commonly used values like our ...
Automatically collapse navigation items into a "More" menu when space is limited using the Priority+ pattern.
.border-primary--bs-bc: var(--bs-primary-bg); border-color: var(--bs-bc); .border-accent--bs-bc: var(--bs-accent-bg); border-color: var(--bs-bc); .border-success--bs ...
Provide visual feedback on password strength with segmented meters or progress bars that update as users type.
Use place-items utilities to control the alignment of grid items within their grid areas on both the block and inline axes simultaneously.
Overview OTP (One-Time Password) inputs are a common pattern for two-factor authentication, verification codes, and PIN entry. Bootstrap's OTP input is built around a single real text field that is ...
.underline-primary--bs-underline-color: light-dark(var(--bs-blue-600), var(--bs-blue-400)); text-decoration-color: var(--bs-underline-color); .underline-accent--bs ...
Use justify-content utilities to change the alignment of flex items on the main axis.
Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs, custom selects, and custom file inputs.
Example Provide an option to dismiss or close a component with .btn-close. The icon is rendered with a CSS mask-image, so it inherits the color from the .btn-close class—no inline SVG required. Be ...
Create beautifully simple form labels that float over your input fields.