{"id":15180491,"url":"https://github.com/mdbootstrap/bootstrap-modal-backdrop","last_synced_at":"2026-02-27T20:41:10.971Z","repository":{"id":66086831,"uuid":"502973794","full_name":"mdbootstrap/bootstrap-modal-backdrop","owner":"mdbootstrap","description":"Backdrop options for a responsive popup with Bootstrap 5. Prevent close on click outside with static backdrop, remove backdrop, enable interactivity \u0026 more.","archived":false,"fork":false,"pushed_at":"2022-06-15T10:05:56.000Z","size":960,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-03T09:59:49.890Z","etag":null,"topics":["bootstrap","bootstrap5","bootstrap5-template","modal","modals","responsive-design","tempate"],"latest_commit_sha":null,"homepage":"https://mdbootstrap.com/docs/standard/extended/modal-backdrop/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdbootstrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-13T13:44:12.000Z","updated_at":"2022-06-14T14:55:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"23ed30de-70db-48fe-a80e-fd1720b361f7","html_url":"https://github.com/mdbootstrap/bootstrap-modal-backdrop","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"18584ba5b5b1f529e6556eb2fed9c5ff76db535b"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdbootstrap%2Fbootstrap-modal-backdrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdbootstrap%2Fbootstrap-modal-backdrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdbootstrap%2Fbootstrap-modal-backdrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdbootstrap%2Fbootstrap-modal-backdrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdbootstrap","download_url":"https://codeload.github.com/mdbootstrap/bootstrap-modal-backdrop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240466796,"owners_count":19805862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap5","bootstrap5-template","modal","modals","responsive-design","tempate"],"created_at":"2024-09-27T16:20:55.274Z","updated_at":"2026-02-27T20:41:05.952Z","avatar_url":"https://github.com/mdbootstrap.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"Backdrop options for a responsive popup with Bootstrap 5. Prevent close on click outside with static backdrop, remove backdrop, enable interactivity \u0026 more.\n\nCheck out [Bootstrap Modal Backdrop Documentation](https://mdbootstrap.com/docs/standard/extended/modal-backdrop/) for detailed instructions \u0026 even more examples.\n\n\n## Basic example\n\nDefault modal backdrop is a delicate shadow overlaying the rest of the page design.\n\n```html\n\u003c!-- Button trigger modal --\u003e\n\u003cbutton type=\"button\" class=\"btn btn-primary\" data-mdb-toggle=\"modal\" data-mdb-target=\"#exampleModal\"\u003e\n  Launch demo modal\n\u003c/button\u003e\n\n\u003c!-- Modal --\u003e\n\u003cdiv class=\"modal top fade\" id=\"exampleModal\" tabindex=\"-1\" aria-labelledby=\"exampleModalLabel\"\n  aria-hidden=\"true\" data-mdb-backdrop=\"true\" data-mdb-keyboard=\"true\"\u003e\n  \u003cdiv class=\"modal-dialog  \"\u003e\n    \u003cdiv class=\"modal-content\"\u003e\n      \u003cdiv class=\"modal-header\"\u003e\n        \u003ch5 class=\"modal-title\" id=\"exampleModalLabel\"\u003eModal title\u003c/h5\u003e\n        \u003cbutton type=\"button\" class=\"btn-close\" data-mdb-dismiss=\"modal\" aria-label=\"Close\"\u003e\u003c/button\u003e\n      \u003c/div\u003e\n      \u003cdiv class=\"modal-body\"\u003e...\u003c/div\u003e\n      \u003cdiv class=\"modal-footer\"\u003e\n        \u003cbutton type=\"button\" class=\"btn btn-secondary\" data-mdb-dismiss=\"modal\"\u003e\n          Close\n        \u003c/button\u003e\n        \u003cbutton type=\"button\" class=\"btn btn-primary\"\u003eSave changes\u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n## Static Backdrop\n\nIf you would like to prevent the modal from closing on a click outside of the modal boundries, you can set the `data-mdb-backdrop` attribute to `static`.\n\n```html\n\u003c!-- Button trigger modal --\u003e\n\u003cbutton type=\"button\" class=\"btn btn-primary\" data-mdb-toggle=\"modal\" data-mdb-target=\"#exampleModal2\"\u003e\n  Launch demo modal\n\u003c/button\u003e\n\n\u003c!-- Modal --\u003e\n\u003cdiv class=\"modal top fade\" id=\"exampleModal2\" tabindex=\"-1\" aria-labelledby=\"exampleModal2Label\"\n  aria-hidden=\"true\" data-mdb-backdrop=\"static\" data-mdb-keyboard=\"true\"\u003e\n  \u003cdiv class=\"modal-dialog  \"\u003e\n    \u003cdiv class=\"modal-content\"\u003e\n      \u003cdiv class=\"modal-header\"\u003e\n        \u003ch5 class=\"modal-title\" id=\"exampleModal2Label\"\u003eModal title\u003c/h5\u003e\n        \u003cbutton type=\"button\" class=\"btn-close\" data-mdb-dismiss=\"modal\" aria-label=\"Close\"\u003e\u003c/button\u003e\n      \u003c/div\u003e\n      \u003cdiv class=\"modal-body\"\u003e...\u003c/div\u003e\n      \u003cdiv class=\"modal-footer\"\u003e\n        \u003cbutton type=\"button\" class=\"btn btn-secondary\" data-mdb-dismiss=\"modal\"\u003e\n          Close\n        \u003c/button\u003e\n        \u003cbutton type=\"button\" class=\"btn btn-primary\"\u003eSave changes\u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n## No Backdrop\n\nIf you would like to get rid of the backdrop, you can set the `data-mdb-backdrop` attribute to `false`.\n\n```html\n\u003c!-- Button trigger modal --\u003e\n\u003cbutton type=\"button\" class=\"btn btn-primary\" data-mdb-toggle=\"modal\" data-mdb-target=\"#exampleModal3\"\u003e\n  Launch demo modal\n\u003c/button\u003e\n\n\u003c!-- Modal --\u003e\n\u003cdiv class=\"modal top fade\" id=\"exampleModal3\" tabindex=\"-1\" aria-labelledby=\"exampleModal3Label\"\n  aria-hidden=\"true\" data-mdb-backdrop=\"false\" data-mdb-keyboard=\"true\"\u003e\n  \u003cdiv class=\"modal-dialog  \"\u003e\n    \u003cdiv class=\"modal-content\"\u003e\n      \u003cdiv class=\"modal-header\"\u003e\n        \u003ch5 class=\"modal-title\" id=\"exampleModal3Label\"\u003eModal title\u003c/h5\u003e\n        \u003cbutton type=\"button\" class=\"btn-close\" data-mdb-dismiss=\"modal\" aria-label=\"Close\"\u003e\u003c/button\u003e\n      \u003c/div\u003e\n      \u003cdiv class=\"modal-body\"\u003e...\u003c/div\u003e\n      \u003cdiv class=\"modal-footer\"\u003e\n        \u003cbutton type=\"button\" class=\"btn btn-secondary\" data-mdb-dismiss=\"modal\"\u003e\n          Close\n        \u003c/button\u003e\n        \u003cbutton type=\"button\" class=\"btn btn-primary\"\u003eSave changes\u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n\n```\n\n\n## How to use?\n\n1. Download MDB 5 - free UI KIT\n\n2. Choose your favourite customized component and click on the image\n\n3. Copy \u0026 paste the code into your MDB project\n\n[▶️ Subscribe to YouTube channel for web development tutorials \u0026 resources](https://www.youtube.com/MDBootstrap?sub_confirmation=1)\n\n\n\n___\n\n## More extended Bootstrap documentation\n\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/bootstrap-address-form/\"\u003eBootstrap Address Form\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/avatar/\"\u003eBootstrap Avatar\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/back-to-top/\"\u003eBootstrap Back To Top Button\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/carousel-with-thumbnails/\"\u003eBootstrap Carousel Slider with Thumbnails\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/chat/\"\u003eBootstrap Chat\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/code/\"\u003eBootstrap Code Blocks\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/comments/\"\u003eBootstrap Comments\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/bootstrap-comparison-table/\"\u003eBootstrap Comparison Table\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/credit-card/\"\u003eBootstrap Credit Card Form\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/drawer/\"\u003eBootstrap Drawer\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/dropdown-multilevel/\"\u003eBootstrap Nested Dropdown\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/faq/\"\u003eBootstrap FAQ component / section\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/gallery/\"\u003eBootstrap Gallery\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/hamburger-menu/\"\u003eBootstrap Hamburger Menu\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/bootstrap-invoice/\"\u003eBootstrap Invoice\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/jumbotron/\"\u003eBootstrap Jumbotron\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/login/\"\u003eBootstrap Login Form\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/maps/\"\u003eBootstrap Maps\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/media-object/\"\u003eBootstrap Media Object\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/mega-menu/\"\u003eBootstrap Mega Menu\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/multiselect/\"\u003eBootstrap Multiselect\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/news-feed/\"\u003eBootstrap News Feed\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/offcanvas/\"\u003eBootstrap Offcanvas\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/order-details/\"\u003eBootstrap Order Details\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/page-transitions/\"\u003eBootstrap Page Transitions\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/payment-forms/\"\u003eBootstrap Payment Forms\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/product-cards/\"\u003eBootstrap Product Cards\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/profiles/\"\u003eBootstrap Profiles\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/quotes/\"\u003eBootstrap Quotes\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/registration/\"\u003eBootstrap Registration Form\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/search-expanding/\"\u003eBootstrap Expanding Search Bar\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/shopping-carts/\"\u003eBootstrap Shopping Carts\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/side-navbar/\"\u003eBootstrap Side Navbar\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/sidebar/\"\u003eBootstrap Sidebar\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/social-media/\"\u003eBootstrap Social Media Icons \u0026 Buttons\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/square-buttons/\"\u003eBootstrap Square Buttons\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/bootstrap-survey-form/\"\u003eBootstrap Survey Form\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/testimonial-slider/\"\u003eBootstrap Testimonial Slider\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/testimonials/\"\u003eBootstrap Testimonials\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/textarea/\"\u003eBootstrap Textarea\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/timeline/\"\u003eBootstrap Timeline\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/to-do-list/\"\u003eBootstrap To Do List\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/video-carousel/\"\u003eBootstrap Video Carousel / Gallery\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/weather/\"\u003eBootstrap Weather\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/dark-mode/\"\u003eBootstrap Dark Mode\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/padding/\"\u003eBootstrap Padding\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/modal-methods/\"\u003eBootstrap Modal Methods\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/modal-size/\"\u003eBootstrap Modal Size\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/card-deck/\"\u003eBootstrap Card Deck\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/table-filter/\"\u003eBootstrap Table Filter\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/slider/\"\u003eBootstrap Slider\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/logo/\"\u003eBootstrap Logo\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/popup/\"\u003eBootstrap Popup\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/max-width/\"\u003eBootstrap Max Width\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/hero/\"\u003eBootstrap Hero\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/select-dropdown/\"\u003eBootstrap Select Dropdown\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/labels/\"\u003eBootstrap Labels\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/dialog/\"\u003eBootstrap Dialog\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/screen-sizes/\"\u003eBootstrap Screen Sizes\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/dropdown-button/\"\u003eBootstrap Dropdown Button\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://mdbootstrap.com/docs/standard/extended/widgets/\"\u003eBootstrap Widgets\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdbootstrap%2Fbootstrap-modal-backdrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdbootstrap%2Fbootstrap-modal-backdrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdbootstrap%2Fbootstrap-modal-backdrop/lists"}