Cookie Consent
Bootstrap 5 Cookie Consent banner
Bootstrap cookie banner is a popup window with cookie notice required by GDPR. Learn how to create a modal like this with Bootstrap 5 or download free examples.
Basic example
Click the button to launch the cookie consent.
With icon
You can add an icon for cookie consent. Remove the .modal-sm
that is next to the .modal-dialog
to extend the modal and make space for the icon.
With checkboxes
Add checkboxes if you want the user to be able to select which cookie consent is consented to.
Frame
To make the modal "frame-like" add .modal-frame
class to the .modal-dialog
element. You also need to specify the direction by adding .modal-bottom
or .modal-top
to the
..modal-dialog
.