A generic close button for dismissing content such as modals and alerts.
Bootstrap adds relevant styling to a disabled close button to prevent user interactions.
Change the default dark color to white using
Dark variants for components were deprecated in Bootstrap v5.3.0 with the introduction
of color modes. Instead of adding
data-bs-theme="dark" on the root
element, a parent wrapper, or the component itself.
To ensure the maximum accessibility for Close Button components, it is
recommended that you provide relevant text for screen readers. The example
below provides an example of accessible usage of this component by way of the