Skip to content

Close Button

The × dismiss control alerts/modals/offcanvas share.

Internal building block

Not intended for standalone placement in page builders. This is the dismiss button used inside Alert, Modal and Offcanvas — it's documented here because those components include it, not because it's placed on its own.

Demo

Usage

{% include 'bootstrap_components:close_button' with {
  aria_label: 'Close',
} %}

Props

Prop Type Description Example
aria_label string Name of the close button for assistive technology. Close