{"id":2606,"date":"2022-12-20T17:48:56","date_gmt":"2022-12-20T17:48:56","guid":{"rendered":"https:\/\/www.copycat.dev\/blog\/?p=2606"},"modified":"2023-02-14T11:11:25","modified_gmt":"2023-02-14T11:11:25","slug":"bootstrap-alert","status":"publish","type":"post","link":"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/","title":{"rendered":"How to Get Started with Bootstrap Alert"},"content":{"rendered":"<div class=\"convertful-189269\"><\/div>\n\n\n\n<div id=\"rtoc-mokuji-wrapper\" class=\"rtoc-mokuji-content frame3 preset2 animation-fade rtoc_open noto-sans\" data-id=\"2606\" data-theme=\"CopyCat Theme\">\n\t\t\t<div id=\"rtoc-mokuji-title\" class=\" rtoc_left\">\n\t\t\t<button class=\"rtoc_open_close rtoc_open\"><\/button>\n\t\t\t<span>Table of Contents<\/span>\n\t\t\t<\/div><ol class=\"rtoc-mokuji decimal_ol level-1\"><li class=\"rtoc-item\"><a href=\"#rtoc-1\">Introduction<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-2\">Overview<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-3\">What is Bootstrap Alert?<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-4\">Setting Up Bootstrap<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-5\">Creating alerts in Bootstrap<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-6\">Types of Bootstrap Alerts<\/a><ul class=\"rtoc-mokuji mokuji_ul level-2\"><li class=\"rtoc-item\"><a href=\"#rtoc-7\">Alert Alert-success Type<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-8\">Alert Alert-info Type<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-9\">Alert Alert-warning Type<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-10\">Alert Alert-danger Type<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-11\">How do I make bootstrap alerts automatically disappear?<\/a><\/li><\/ul><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-12\">Styling Bootstrap Alerts<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-13\">Closing Alerts via Data Attributes<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-14\">Bootstrap Alert Examples<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-15\">Add icons to Bootstrap Alerts<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-16\">Additional Content Inside Bootstrap Alerts<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-17\">Adding Link in Bootstrap Alert<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-18\">Matching Links Color inside Alerts<\/a><\/li><li class=\"rtoc-item\"><a href=\"#rtoc-19\">Wrapping Up<\/a><ul class=\"rtoc-mokuji mokuji_ul level-2\"><li class=\"rtoc-item\"><a href=\"#rtoc-20\"><strong>Interesting Reads From Our Blogs<\/strong><\/a><\/li><\/ul><\/li><\/ol><\/div><h2 id=\"rtoc-1\" class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Bootstrap is one of the most popular CSS (Cascading Style Sheet) frameworks for developing responsive websites. Bootstrap helps to design and customize mobile-first websites quickly.<\/p>\n\n\n\n<p>The package includes various free tools that enable designers to create both more responsive and more common website interface elements, increasing the framework’s adaptability.<\/p>\n\n\n\n<p>The latest version of Bootstrap as of the time of writing this article is <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/getbootstrap.com\/docs\/5.0\/getting-started\/introduction\/\">Bootstrap v5.0<\/a>.<\/p>\n\n\n\n<p>If you want to increase your productivity, try CopyCat, an AI that can convert your Figma designs into React, Tailwind, Bootstrap, and other popular CSS frameworks. Click <a href=\"https:\/\/www.copycat.dev\/figma-plugin\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a> to check out the <a href=\"https:\/\/www.copycat.dev\/figma-plugin\" target=\"_blank\" rel=\"noreferrer noopener\">CopyCat plugin for Figma<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-1 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background wp-element-button\" href=\"https:\/\/www.copycat.dev\/figma-to-code\" style=\"background-color:#7b3beb\">Convert Figma to Code with CopyCat<\/a><\/div>\n<\/div>\n\n\n\n<h2 id=\"rtoc-2\" class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>In this article, we will look at what bootstrap alert is, its proper behavior, and how it provides contextual feedback messages to the user.<\/p>\n\n\n\n<p>We will look at the different classes, like the alert link class for web links. We will also look at alert styles and adding proper alert messages to the alert element, adding buttons for closing alerts, and how to use javascript to make alerts automatically disappear, among other things.<\/p>\n\n\n\n<h2 id=\"rtoc-3\" class=\"wp-block-heading\">What is Bootstrap Alert?<\/h2>\n\n\n\n<p>The bootstrap alert plugin creates predefined alert messages and styles, for typical user actions to provide appropriate feedback messages for typical user actions.<\/p>\n\n\n\n<p>In the way alert works, this feedback is provided based on eight predefined alert inline classes. The contextual classes are alert-secondary<em>,<\/em> alert-success<em>,<\/em> alert-danger<em>,<\/em> alert-warning<em>,<\/em> alert-info<em>,<\/em> alert-light<em>,<\/em> and alert-dark<em>.<\/em><\/p>\n\n\n\n<p>For example alert for deletion should be alert-danger or alert-warning<em>.<\/em> An alert javascript plugin also gives more functionality. The most appropriate location for alerts is at the top of the screen<\/p>\n\n\n\n<h2 id=\"rtoc-4\" class=\"wp-block-heading\">Setting Up Bootstrap<\/h2>\n\n\n\n<p>The first step to using alert in Bootstrap is adding it to your project. There are two ways:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Installing via package manager using npm<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nnpm install bootstrap@5.2.3\n\n<\/pre><\/div>\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Including via CDN (Content delivery network)<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="UTF-8" \/>\n <meta http-equiv="X-UA-Compatible" content="IE=edge" \/>\n <meta name="viewport" content="width=device-width, initial-scale=1.0" \/>\n <title>Document<\/title>\n <!-- CSS only -->\n <link\n href="https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.2.3\/dist\/css\/bootstrap.min.css"\n rel="stylesheet"\n integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"\n crossorigin="anonymous"\n \/>\n\n <!-- JavaScript Bundle with Popper -->\n <script\n src="https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.2.3\/dist\/js\/bootstrap.bundle.min.js"\n integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK\/7HAuoJl+0I4"\n crossorigin="anonymous"\n ><\/script>\n <\/head>\n <body class="p-4"><\/body>\n<\/html>\n\n<\/pre><\/div>\n\n\n<h2 id=\"rtoc-5\" class=\"wp-block-heading\">Creating alerts in Bootstrap<\/h2>\n\n\n\n<p>After adding bootstrap to your project using either of the methods mentioned above, the next thing is to add the alert class you intend to use. This will be determined by the type of alert you wish to display, be it a success or warning type.<\/p>\n\n\n\n<p>The first step is to add a div tag. A div tag defines a division or a section in an <strong>HTML<\/strong> document. It can also be used as a container for other HTML elements.<\/p>\n\n\n\n<p>After adding the div, the next thing is to add the class alert which signifies that the alert is to be used here. Then, you add the type of alert you want to use. Like it was stated above, it could be a success alert, danger alert, warning alert, etc.<\/p>\n\n\n\n<p>Then you specify the role, which will also be an “alert” value. After that, you can add the text to display within the alert, it could range from “user logged in” to “contact deleted”.<\/p>\n\n\n\n<p>For proper styling, it is advisable to use contextual classes that convey the appropriate message.<\/p>\n\n\n\n<p>The following code translates the above explanation:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-primary" role="alert">\n simple primary alert\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>The code above will produce the following output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670465221023\/vB-egtdoN.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 id=\"rtoc-6\" class=\"wp-block-heading\">Types of Bootstrap Alerts<\/h2>\n\n\n\n<p>There are eight (8) contextual classes of alert;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>alert-primary<\/li>\n\n\n\n<li>alert-secondary<\/li>\n\n\n\n<li>alert-success<\/li>\n\n\n\n<li>alert-danger<\/li>\n\n\n\n<li>alert-warning<\/li>\n\n\n\n<li>alert-info<\/li>\n\n\n\n<li>alert-light<\/li>\n\n\n\n<li>alert-dark<\/li>\n<\/ol>\n\n\n\n<p>They are expected to be used based on the type of message displayed on the UI. It is advisable to use the class that compliments the action and the expected feedback.<\/p>\n\n\n\n<p>This can not be overemphasized. An example of the 8 classes is below.<\/p>\n\n\n\n<h3 id=\"rtoc-7\" class=\"wp-block-heading\">Alert Alert-success Type<\/h3>\n\n\n\n<p>The alert alert-success classes are for indicating a successful or positive action. For example, when a user successfully signs up.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-success" role="alert">\nsimple success alert\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>The <strong>success<\/strong> alert type will look something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670465592310\/EgkLPwRW7.png\" alt=\"\"\/><\/figure>\n\n\n\n<h3 id=\"rtoc-8\" class=\"wp-block-heading\">Alert Alert-info Type<\/h3>\n\n\n\n<p>The alert alert-info classes should be used to indicate a neutral or informative change or action.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-info" role="alert">\nsimple info alert\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>The <strong>info<\/strong> alert type will look something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670465663365\/JR1ZJUYmb.png\" alt=\"\"\/><\/figure>\n\n\n\n<h3 id=\"rtoc-9\" class=\"wp-block-heading\">Alert Alert-warning Type<\/h3>\n\n\n\n<p>The alert alert-warning should be used to indicate a warning that might need attention.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-warning" role="alert">\nsimple warning alert\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>The <strong>warning<\/strong> alert type will look something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670465875683\/yF97E4KEH.png\" alt=\"\"\/><\/figure>\n\n\n\n<h3 id=\"rtoc-10\" class=\"wp-block-heading\">Alert Alert-danger Type<\/h3>\n\n\n\n<p>The alert alert-danger indicates a dangerous or potentially negative action.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-danger" role="alert">\nsimple danger alert\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>The <strong>danger<\/strong> alert type will look something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670466045598\/Bxm07RwyO.png\" alt=\"\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">The following are the full bootstrap alert types code snippet:<\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-primary" role="alert">\nsimple primary alert\n<\/div>\n\n<div class="alert alert-secondary" role="alert">\nsimple secondary alert\n<\/div>\n\n<div class="alert alert-success" role="alert">\nsimple success alert\n<\/div>\n\n<div class="alert alert-danger" role="alert">\nsimple danger alert\n<\/div>\n\n<div class="alert alert-warning" role="alert">\nsimple warning alert\n<\/div>\n\n<div class="alert alert-info" role="alert">\nsimple info alert\n<\/div>\n\n<div class="alert alert-light" role="alert">\nsimple light alert\n<\/div>\n\n<div class="alert alert-dark" role="alert">\nsimple dark alert!\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>Output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670466386048\/Hl3C1oMb1.png\" alt=\"\"\/><\/figure>\n\n\n\n<h3 id=\"rtoc-11\" class=\"wp-block-heading\">How do I make bootstrap alerts automatically disappear?<\/h3>\n\n\n\n<p>Alert is not meant to stay on the screen forever. This section will deal with closing the alert automatically by using the alert dismissible class.<\/p>\n\n\n\n<p>The first step is to add <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/jquery.com\/\">jquery<\/a> to the index.html file, this will give access to the javascript functionality. Add the script tag below to the head tag of your file.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<script src="https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.12.4\/jquery.min.js"><\/script>\n\n<\/pre><\/div>\n\n\n<p>Next is to create the bootstrap alert component like it was done earlier. This time the class alert-info is used. It is not compulsory to make use of alert-info, any of the alert classes stated earlier can be used.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-info" role="alert">\n <h4 class="alert-heading">Cost<\/h4>\n $10,000\n<\/div>\n<div class="alert alert-secondary" role="alert">\n <h4 class="alert-heading">Cost<\/h4>\n $40,000\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>Now is the time to add some code snippets for the alert function that will add the auto-disappear needed. At the bottom of the file, just after the body closing tag, add the code below.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<script type="text\/javascript">\n$(document).ready(function () {\n window.setTimeout(function () {\n $(".alert")\n .fadeTo(1000, 0)\n .slideUp(1000, function () {\n $(this).remove();\n });\n }, 5000);\n});\n<\/script>\n\n<\/pre><\/div>\n\n\n<p>The above code will dismiss the alert after five (5) seconds as demonstrated below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670467183714\/OcLRFjmgC.gif\" alt=\"\"\/><\/figure>\n\n\n\n<h2 id=\"rtoc-12\" class=\"wp-block-heading\">Styling Bootstrap Alerts<\/h2>\n\n\n\n<p>When you need to show the important alert message you might need to style them to give it better visibility. This can be done via <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/www.freecodecamp.org\/news\/inline-style-in-html\/\">in-line styles<\/a>, bootstrap predefined classes, or a style sheet. The example in this section demonstrates alert styles using a style sheet.<\/p>\n\n\n\n<p>First, create the style sheet and link to the HTML file using the link tag. The path should point to the exact location of the stylesheet.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<link rel="stylesheet" href="style.css" \/>\n\n<\/pre><\/div>\n\n\n<p>The simple HTML code structure below should do for this demonstration:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-success" role="alert">\n <h1>Hey!<\/h1>\n simple success alert\n<\/div>\n<div class="alert alert-info" role="alert">\n <h3>Hey!<\/h3>\n simple info alert\n<\/div>\n<div class="alert alert-warning" role="alert">\n <h2>Hey!<\/h2>\n simple warning alert\n<\/div>\n<div class="alert alert-danger" role="alert">\n <h2>Hey!<\/h2>\n simple danger alert\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>The default output of the above HTML code is as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670467777025\/5fNLJsd7c.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>You can add styles according to your needs using the alert type classes as shown below. Copy the code below into your style.css file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n.alert-success {\n border-color: #e6e6e6;\n border-left: 100px solid #00986a;\n background-color: #fff;\n color: #888;\n}\n\n.alert-info {\n border-color: #e6e6e6;\n border-left: 100px solid #00b3c8;\n background-color: #fff;\n color: #888;\n}\n\n.alert-warning {\n border-color: #e6e6e6;\n border-left: 100px solid #f9af2c;\n background-color: #fff;\n color: #888;\n}\n\n.alert-danger {\n border-color: #e6e6e6;\n border-left: 100px solid #c82630;\n background-color: #fff;\n color: #888;\n}\n\n<\/pre><\/div>\n\n\n<p>The output with the custom CSS styles will look something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670467729508\/KDJnZWVOB.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 id=\"rtoc-13\" class=\"wp-block-heading\">Closing Alerts via Data Attributes<\/h2>\n\n\n\n<p>As stated earlier, an alert is not meant to stay on the screen forever. It can also be closed via a <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Element\/click_event\">click event<\/a> this will involve adding a button component and some additional contextual classes e.g alert-dismissible.<\/p>\n\n\n\n<p>The code below adds a close button to the regular alert that makes the alert close when the button is clicked.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-warning alert-dismissible fade show">\n Click X to close...\n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>The above code will function as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670468473841\/M-SpcfpNV.gif\" alt=\"\"\/><\/figure>\n\n\n\n<h2 id=\"rtoc-14\" class=\"wp-block-heading\">Bootstrap Alert Examples<\/h2>\n\n\n\n<p>This time around, we will look into a typical alert example. Several examples have been given above, but this will shed more light.<\/p>\n\n\n\n<p>When using an alert, the most appropriate element should be used. The color of the alert must carry a clear interpretation of the action.<\/p>\n\n\n\n<p>For example alert for successful action should be green, failed action should be red.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670468780587\/jG-YdK4sH.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>From the image above, it is obvious the alert with green background is the most appropriate element for the success message since it carries a clear interpretation.<\/p>\n\n\n\n<p>Below is an appropriate use of the alert type on a failed and a successful action as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670468695945\/4ditCJZYk.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 id=\"rtoc-15\" class=\"wp-block-heading\">Add icons to Bootstrap Alerts<\/h2>\n\n\n\n<p>Icons can make alerts more descriptive and in some cases, it’s advisable to use them. Bootstrap supports a large number of icon sets as given below:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/icons.getbootstrap.com\/\">Bootstrap Icons<\/a><\/li>\n\n\n\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/fontawesome.com\/\">Font Awesome<\/a><\/li>\n\n\n\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/icons8.com\/\">Icons 8<\/a><\/li>\n\n\n\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/feathericons.com\/\">Feather<\/a><\/li>\n\n\n\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/octicons.github.com\/\">Octicons<\/a><\/li>\n\n\n\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/fonts.google.com\/icons\">Google Material Icons.<\/a><\/li>\n<\/ul>\n\n\n\n<p>Bootstrap team has introduced over 1,800 icons that are free and high quality, you no longer have to use font awesome or something like that, you can just stick to the <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/icons.getbootstrap.com\/\">bootstrap font pack<\/a>.<\/p>\n\n\n\n<p>You can install these icons either through <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/www.npmjs.com\/\">NPM<\/a>, manual download, or CDN. The example below shows how to add bootstrap icons to bootstrap alerts using CDN.<\/p>\n\n\n\n<p>The first step is to add the CDN link in the head tag:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<link rel="stylesheet" href="https:\/\/cdn.jsdelivr.net\/npm\/bootstrap-icons@1.8.3\/font\/bootstrap-icons.css"\/>\n\n<\/pre><\/div>\n\n\n<p>Add the following code within your HTML body:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-primary alert-dismissible fade show" role="alert">\n <i class="bi bi-app-indicator"><\/i> \n \n alert primary\n \n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<div class="alert alert-success alert-dismissible fade show" role="alert">\n <i class="bi bi-check-circle-fill"><\/i> \n \n alert success\n \n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<div class="alert alert-danger alert-dismissible fade show" role="alert">\n <i class="bi bi-x-circle-fill"><\/i>\n \n alert danger\n \n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<div class="alert alert-info alert-dismissible fade show" role="alert">\n \n <i class="bi bi-info-circle-fill"><\/i> \n\n alert info\n \n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>The above code will add icons to the alert component as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670469227882\/1vmwKslkd.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>You can check out the complete bootstrap icons here.<\/p>\n\n\n\n<h2 id=\"rtoc-16\" class=\"wp-block-heading\">Additional Content Inside Bootstrap Alerts<\/h2>\n\n\n\n<p>On some websites, we regularly come across particular alerts either before or after executing an activity. These bootstrap alert messages are highlighted text that has to be considered when carrying out an activity. These alerts may appear with contextual feedback messages.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670469574935\/Xzt8PN-Iz.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>For example, while shopping for items online, if an item was added to the cart or a purchase was made, it would be nice to get a confirmation alert that the action was successful, default notifications with alert primary, or failure which can be achieved with a simple danger alert.<\/p>\n\n\n\n<p>The example above is achieved with the code below:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For adding to the cart<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-success alert-dismissible fade show" role="alert">\n <h3>Success!<\/h3>\n An item was successfully added to your cart. You now have a total of\n <strong>5<\/strong>\n items\n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>For removing items from the cart<code> <\/code><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-danger alert-dismissible fade show" role="alert">\n <h3>Deleted!<\/h3>\n An item was successfully <strong>removed<\/strong> to your cart. You now\n have a total of\n <strong>4<\/strong>\n items\n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Output:<img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670469834189\/HB0y_1g8c.png\" alt=\"\"><\/li>\n\n\n\n<li>For duplicate items<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-info alert-dismissible fade show" role="alert">\n <h3>Duplicate!<\/h3>\n You already have <strong>yellow leather bag<\/strong> in your cart\n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Output:<img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670469904258\/s_bNIFbEm.png\" alt=\"\"><\/li>\n\n\n\n<li>For displaying the total in the cart<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-primary alert-dismissible fade show" role="alert">\n <h3>Hey!<\/h3>\n You have made a total of <strong>12<\/strong> orders this month\n <button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Output:<img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670470078027\/lVc3uWPB6.png\" alt=\"\"><\/li>\n<\/ul>\n\n\n\n<h2 id=\"rtoc-17\" class=\"wp-block-heading\">Adding Link in Bootstrap Alert<\/h2>\n\n\n\n<p>In some cases, alerts might need to have internal or external links embedded into them. Maybe the alert is for a new policy change and you need to provide a link to the policy document, or you want to inform the user that their subscription is about to expire and you want to provide a link to the subscription page then you need to embed the link in the alert element.<\/p>\n\n\n\n<p>A simple warning alert with a link may go as follows:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-warning alert-dismissible fade show" role="alert">\n <h4>Subscription Update<\/h4>\n Your monthly Subscription to our newsletter will soon expire\n <a href="#">click here renew<\/a\n ><button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>Output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670470304664\/zxPXv2Q1s.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>A simple primary alert with a link:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-primary alert-dismissible fade show" role="alert">\n <h4>Policy Update<\/h4>\n We updated our company policy,\n <a href="#">click here to read more<\/a\n ><button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>Output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670470447518\/K9eVsrcuA.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>In the two examples above, links are easily embedded in an alert element. But there is a problem, the link is not taking the style of the alert element, which will be discussed in the next section.<\/p>\n\n\n\n<h2 id=\"rtoc-18\" class=\"wp-block-heading\">Matching Links Color inside Alerts<\/h2>\n\n\n\n<p>To provide matching colored links within any alert, use the alert-link utility class. This ensures that the color of the link matches the color of the alert. This in turn gives the alert a better feel.<\/p>\n\n\n\n<p>The example below transforms the previous examples into appropriate colors:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n<div class="alert alert-warning alert-dismissible fade show" role="alert">\n <h4>Subscription Update<\/h4>\n Your monthly subcription to our newsletter will soon expire\n <a href="#" class="alert-link">click here to renew<\/a\n ><button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<div class="alert alert-primary alert-dismissible fade show" role="alert">\n <h4>Policy Update<\/h4>\n We updated our company policy,\n <a href="#" class="alert-link">click here to read more<\/a\n ><button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n<div class="alert alert-secondary alert-dismissible fade show" role="alert">\n <h4>Update<\/h4>\n The interest for this month was paid into your account,\n <a href="#" class="alert-link">click here check<\/a\n ><button\n type="button"\n class="btn-close"\n data-bs-dismiss="alert"\n aria-label="Close"\n ><\/button>\n<\/div>\n\n<\/pre><\/div>\n\n\n<p>Output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.hashnode.com\/res\/hashnode\/image\/upload\/v1670470610954\/RpCBmYCXe.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 id=\"rtoc-19\" class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>With Bootstrap alert, developers can easily use predesigned responsive alerts for push notifications without having to write the code from scratch. This will allow for maintaining consistency among projects when using multiple developer teams.<\/p>\n\n\n\n<p>Additionally, due to the many customization options, alerts may simply be adjusted to match the majority of UI styles.<\/p>\n\n\n\n<p>Watch the video tutorial below to learn more about how to create a real-world Bootstrap alert application.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Display Flash Messages in Bootstrap Alert\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/g8IXN0cVQws?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Finally, more articles like this are on our <a href=\"https:\/\/www.copycat.dev\/blog\/\" target=\"_blank\" rel=\"noreferrer noopener\">CopyCat blog<\/a>. CopyCat converts your Figma files into a ready-to-use React project, saving you over 35% of development time. You can check out CopyCat <a href=\"https:\/\/www.copycat.dev\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-2 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background wp-element-button\" href=\"https:\/\/www.copycat.dev\/\" style=\"background-color:#7b3beb\">Convert Figma to React with CopyCat<\/a><\/div>\n<\/div>\n\n\n\n<h3 id=\"rtoc-20\" class=\"wp-block-heading\"><strong>Interesting Reads From Our Blogs<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/www.copycat.dev\/blog\/bootstrap-navbar\/\"><strong>How to Create an Amazing Bootstrap Navbar Complete Guide<\/strong><\/a><\/li>\n\n\n\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/www.copycat.dev\/blog\/bootstrap-colors\/\"><strong>Understanding Bootstrap Colors in Full<\/strong><\/a><\/li>\n\n\n\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/www.copycat.dev\/blog\/bootstrap-flex\/\"><strong>Use Bootstrap Flex in Your React Projects for Great Web Design<\/strong><\/a><\/li>\n\n\n\n<li><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/www.copycat.dev\/blog\/bootstrap-breakpoints\/\"><strong>A Complete Guide On How to Use Bootstrap Breakpoints<\/strong><\/a><\/li>\n<\/ul>\n\n\n\n<p>Happy Coding \ud83d\udc68\ud83c\udffd\u200d\ud83d\udcbb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table of Contents IntroductionOverviewWhat is Bootstrap Alert?Setting Up BootstrapCreating alerts in BootstrapTypes of Bootstrap AlertsAlert Alert-success TypeAlert Alert-info TypeAlert Alert-warning TypeAlert Alert-danger TypeHow do I make bootstrap alerts automatically disappear?Styling Bootstrap AlertsClosing Alerts via Data AttributesBootstrap Alert ExamplesAdd icons to Bootstrap AlertsAdditional Content Inside Bootstrap AlertsAdding Link in Bootstrap AlertMatching Links Color inside AlertsWrapping UpInteresting […]<\/p>\n","protected":false},"author":9,"featured_media":2656,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[17],"tags":[222,122,220,221,27,30],"class_list":["post-2606","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-react-js","tag-alerts","tag-bootstrap","tag-bootstrap-alert","tag-css","tag-react","tag-react-js"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Get Started with Bootstrap Alert - CopyCat Blog<\/title>\n<meta name=\"description\" content=\"In this article, we will look at what bootstrap alert is, its proper behavior, and how it provides contextual feedback messages to the user.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Get Started with Bootstrap Alert - CopyCat Blog\" \/>\n<meta property=\"og:description\" content=\"In this article, we will look at what bootstrap alert is, its proper behavior, and how it provides contextual feedback messages to the user.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/\" \/>\n<meta property=\"og:site_name\" content=\"CopyCat Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-20T17:48:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-14T11:11:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.copycat.dev\/blog\/wp-content\/uploads\/2022\/12\/bootstrap-alert.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2240\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Uncle Big Bay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Uncle Big Bay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Get Started with Bootstrap Alert - CopyCat Blog","description":"In this article, we will look at what bootstrap alert is, its proper behavior, and how it provides contextual feedback messages to the user.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/","og_locale":"en_US","og_type":"article","og_title":"How to Get Started with Bootstrap Alert - CopyCat Blog","og_description":"In this article, we will look at what bootstrap alert is, its proper behavior, and how it provides contextual feedback messages to the user.","og_url":"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/","og_site_name":"CopyCat Blog","article_published_time":"2022-12-20T17:48:56+00:00","article_modified_time":"2023-02-14T11:11:25+00:00","og_image":[{"width":2240,"height":1260,"url":"https:\/\/www.copycat.dev\/blog\/wp-content\/uploads\/2022\/12\/bootstrap-alert.png","type":"image\/png"}],"author":"Uncle Big Bay","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Uncle Big Bay","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/","url":"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/","name":"How to Get Started with Bootstrap Alert - CopyCat Blog","isPartOf":{"@id":"https:\/\/www.copycat.dev\/blog\/#website"},"datePublished":"2022-12-20T17:48:56+00:00","dateModified":"2023-02-14T11:11:25+00:00","author":{"@id":"https:\/\/www.copycat.dev\/blog\/#\/schema\/person\/9b6ba3105946a0869f4e3a8c9f4504fe"},"description":"In this article, we will look at what bootstrap alert is, its proper behavior, and how it provides contextual feedback messages to the user.","breadcrumb":{"@id":"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.copycat.dev\/blog\/bootstrap-alert\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.copycat.dev\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Get Started with Bootstrap Alert"}]},{"@type":"WebSite","@id":"https:\/\/www.copycat.dev\/blog\/#website","url":"https:\/\/www.copycat.dev\/blog\/","name":"CopyCat Blog","description":"Perfect the art of copying code","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.copycat.dev\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.copycat.dev\/blog\/#\/schema\/person\/9b6ba3105946a0869f4e3a8c9f4504fe","name":"Uncle Big Bay","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.copycat.dev\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.copycat.dev\/blog\/wp-content\/uploads\/2022\/08\/ubb-96x96.jpeg","contentUrl":"https:\/\/www.copycat.dev\/blog\/wp-content\/uploads\/2022\/08\/ubb-96x96.jpeg","caption":"Uncle Big Bay"},"url":"https:\/\/www.copycat.dev\/blog\/author\/uncle-big-bay\/"}]}},"jetpack_featured_media_url":"https:\/\/www.copycat.dev\/blog\/wp-content\/uploads\/2022\/12\/bootstrap-alert.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/posts\/2606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/comments?post=2606"}],"version-history":[{"count":6,"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/posts\/2606\/revisions"}],"predecessor-version":[{"id":2658,"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/posts\/2606\/revisions\/2658"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/media\/2656"}],"wp:attachment":[{"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/media?parent=2606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/categories?post=2606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.copycat.dev\/blog\/wp-json\/wp\/v2\/tags?post=2606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}