This demo page showcases three essential Bootstrap components that can enhance your web application’s user experience:
Each component has several variations to demonstrate different use cases. Click the buttons to see them in action!
Modals are dialog boxes/popups that display on top of the current page. They’re useful for displaying critical information, gathering user input, or confirming actions.
data-bs-toggle="modal" and data-bs-target="#modalId"Tooltips are small popups that appear when a user hovers over an element, providing additional information or context.
Tooltips can also be applied to other elements:
Hover over this link to see a tooltip, or hover over this icon.
data-bs-toggle="tooltip" and title="Your tooltip text" to any elementdata-bs-placement="top|right|bottom|left"new bootstrap.Tooltip(document.querySelector('#example'))Toasts are lightweight notifications designed to mimic push notifications. They appear temporarily and disappear automatically.
role="alert" and aria-live="assertive"new bootstrap.Toast(document.querySelector('#myToast')).show()This example shows how to combine modals, tooltips, and toasts in a realistic use case: