Bootstrap 5 Data‑Attribute Migration: Auto‑Initialize vs Explicit Component Management
When upgrading from Bootstrap 4 to 5, the data‑attribute API changes from data-toggle to data-bs-toggle and the JavaScript plugins are now vanilla‑JS classes exposed on the global bootstrap namespace. The framework still supports auto‑initialization of components via data attributes, but developers can also instantiate components explicitly with new bootstra