Alert Components

Tailwind CSS Alerts

# Alert

Code

1<div role="alert" class="rounded-xl border border-gray-100 bg-white p-4">
2            <div class="flex items-start gap-4">
3                <span class="text-green-600">
4                    <svg
5                        xmlns="http://www.w3.org/2000/svg"
6                        fill="none"
7                        viewBox="0 0 24 24"
8                        stroke-width="1.5"
9                        stroke="currentColor"
10                        class="h-6 w-6"
11                    >
12                        <path
13                            stroke-linecap="round"
14                            stroke-linejoin="round"
15                            d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
16                        />
17                    </svg>
18                </span>
19
20                <div class="flex-1">
21                    <strong class="block font-medium text-gray-900"> Changes saved </strong>
22
23                    <p class="mt-1 text-sm text-gray-700">Your product changes have been saved.</p>
24                </div>
25
26                <button class="text-gray-500 transition hover:text-gray-600">
27                    <span class="sr-only">Dismiss popup</span>
28
29                    <svg
30                        xmlns="http://www.w3.org/2000/svg"
31                        fill="none"
32                        viewBox="0 0 24 24"
33                        stroke-width="1.5"
34                        stroke="currentColor"
35                        class="h-6 w-6"
36                    >
37                        <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
38                    </svg>
39                </button>
40            </div>
41        </div>

# Alert with Actions

Code

1<div role="alert" class="rounded-xl border border-gray-100 bg-white p-4">
2    <div class="flex items-start gap-4">
3      <span class="text-green-600">
4        <svg
5          xmlns="http://www.w3.org/2000/svg"
6          fill="none"
7          viewBox="0 0 24 24"
8          stroke-width="1.5"
9          stroke="currentColor"
10          class="h-6 w-6"
11        >
12          <path
13            stroke-linecap="round"
14            stroke-linejoin="round"
15            d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
16          />
17        </svg>
18      </span>
19  
20      <div class="flex-1">
21        <strong class="block font-medium text-gray-900"> Changes saved </strong>
22  
23        <p class="mt-1 text-sm text-gray-700">Your product changes have been saved.</p>
24  
25        <div class="mt-4 flex gap-2">
26          <a
27            href="#"
28            class="inline-flex items-center gap-2 rounded-lg bg-indigo-600 px-4 py-2 text-white hover:bg-indigo-700"
29          >
30            <span class="text-sm"> Preview </span>
31  
32            <svg
33              xmlns="http://www.w3.org/2000/svg"
34              fill="none"
35              viewBox="0 0 24 24"
36              stroke-width="1.5"
37              stroke="currentColor"
38              class="h-4 w-4"
39            >
40              <path
41                stroke-linecap="round"
42                stroke-linejoin="round"
43                d="M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"
44              />
45            </svg>
46          </a>
47  
48          <button class="block rounded-lg px-4 py-2 text-gray-700 transition hover:bg-gray-50">
49            <span class="text-sm">Revert</span>
50          </button>
51        </div>
52      </div>
53  
54      <button class="text-gray-500 transition hover:text-gray-600">
55        <span class="sr-only">Dismiss popup</span>
56  
57        <svg
58          xmlns="http://www.w3.org/2000/svg"
59          fill="none"
60          viewBox="0 0 24 24"
61          stroke-width="1.5"
62          stroke="currentColor"
63          class="h-6 w-6"
64        >
65          <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
66        </svg>
67      </button>
68    </div>
69  </div>

# Alert Content

Code

1<div role="alert" class="rounded border-s-4 border-red-500 bg-red-50 p-4">
2  <strong class="block font-medium text-red-800"> Something went wrong </strong>
3
4  <p class="mt-2 text-sm text-red-700">
5    Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nemo quasi assumenda numquam deserunt
6    consectetur autem nihil quos debitis dolor culpa.
7  </p>
8</div>

# Content with Icon

Code

1<div role="alert" class="rounded border-s-4 border-red-500 bg-red-50 p-4">
2  <div class="flex items-center gap-2 text-red-800">
3    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="h-5 w-5">
4      <path
5        fill-rule="evenodd"
6        d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z"
7        clip-rule="evenodd"
8      />
9    </svg>
10
11    <strong class="block font-medium"> Something went wrong </strong>
12  </div>
13
14  <p class="mt-2 text-sm text-red-700">
15    Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nemo quasi assumenda numquam deserunt
16    consectetur autem nihil quos debitis dolor culpa.
17  </p>
18</div>

# Default alert

Code

1<div class="p-4 mb-4 text-sm text-blue-800 rounded-lg bg-blue-50" role="alert">
2<span class="font-medium">Info alert!</span> Change a few things up and try submitting again.
3</div>
4<div class="p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50" role="alert">
5<span class="font-medium">Danger alert!</span> Change a few things up and try submitting again.
6</div>
7<div class="p-4 mb-4 text-sm text-green-800 rounded-lg bg-green-50 " role="alert">
8<span class="font-medium">Success alert!</span> Change a few things up and try submitting again.
9</div>
10<div class="p-4 mb-4 text-sm text-yellow-800 rounded-lg bg-yellow-50 " role="alert">
11<span class="font-medium">Warning alert!</span> Change a few things up and try submitting again.
12</div>
13<div class="p-4 text-sm text-gray-800 rounded-lg bg-gray-50 " role="alert">
14<span class="font-medium">Dark alert!</span> Change a few things up and try submitting again.
15</div>

# Alerts with icon

Code

1<div class="flex items-center p-4 mb-4 text-sm text-blue-800 rounded-lg bg-blue-50" role="alert">
2<svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
3  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
4</svg>
5<span class="sr-only">Info</span>
6<div>
7  <span class="font-medium">Info alert!</span> Change a few things up and try submitting again.
8</div>
9</div>
10<div class="flex items-center p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50" role="alert">
11<svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
12  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
13</svg>
14<span class="sr-only">Info</span>
15<div>
16  <span class="font-medium">Danger alert!</span> Change a few things up and try submitting again.
17</div>
18</div>
19<div class="flex items-center p-4 mb-4 text-sm text-green-800 rounded-lg bg-green-50" role="alert">
20<svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
21  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
22</svg>
23<span class="sr-only">Info</span>
24<div>
25  <span class="font-medium">Success alert!</span> Change a few things up and try submitting again.
26</div>
27</div>
28<div class="flex items-center p-4 mb-4 text-sm text-yellow-800 rounded-lg bg-yellow-50 " role="alert">
29<svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
30  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
31</svg>
32<span class="sr-only">Info</span>
33<div>
34  <span class="font-medium">Warning alert!</span> Change a few things up and try submitting again.
35</div>
36</div>
37<div class="flex items-center p-4 text-sm text-gray-800 rounded-lg bg-gray-50" role="alert">
38<svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
39  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
40</svg>
41<span class="sr-only">Info</span>
42<div>
43  <span class="font-medium">Dark alert!</span> Change a few things up and try submitting again.
44</div>
45</div>

# Bordered alerts

Code

1<div class="flex items-center p-4 mb-4 text-sm text-blue-800 border border-blue-300 rounded-lg bg-blue-50 " role="alert">
2    <svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
3      <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
4    </svg>
5    <span class="sr-only">Info</span>
6    <div>
7      <span class="font-medium">Info alert!</span> Change a few things up and try submitting again.
8    </div>
9  </div>
10  <div class="flex items-center p-4 mb-4 text-sm text-red-800 border border-red-300 rounded-lg bg-red-50 " role="alert">
11    <svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
12      <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
13    </svg>
14    <span class="sr-only">Info</span>
15    <div>
16      <span class="font-medium">Danger alert!</span> Change a few things up and try submitting again.
17    </div>
18  </div>
19  <div class="flex items-center p-4 mb-4 text-sm text-green-800 border border-green-300 rounded-lg bg-green-50 " role="alert">
20    <svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
21      <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
22    </svg>
23    <span class="sr-only">Info</span>
24    <div>
25      <span class="font-medium">Success alert!</span> Change a few things up and try submitting again.
26    </div>
27  </div>
28  <div class="flex items-center p-4 mb-4 text-sm text-yellow-800 border border-yellow-300 rounded-lg bg-yellow-50 " role="alert">
29    <svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
30      <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
31    </svg>
32    <span class="sr-only">Info</span>
33    <div>
34      <span class="font-medium">Warning alert!</span> Change a few things up and try submitting again.
35    </div>
36  </div>
37  <div class="flex items-center p-4 text-sm text-gray-800 border border-gray-300 rounded-lg bg-gray-50 " role="alert">
38    <svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
39      <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
40    </svg>
41    <span class="sr-only">Info</span>
42    <div>
43      <span class="font-medium">Dark alert!</span> Change a few things up and try submitting again.
44    </div>
45  </div>

# Alerts with list

Code

1<div class="flex p-4 mb-4 text-sm text-blue-800 rounded-lg bg-blue-50 " role="alert">
2<svg class="flex-shrink-0 inline w-4 h-4 me-3 mt-[2px]" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
3  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
4</svg>
5<span class="sr-only">Info</span>
6<div>
7  <span class="font-medium">Ensure that these requirements are met:</span>
8    <ul class="mt-1.5 list-disc list-inside">
9      <li>At least 10 characters (and up to 100 characters)</li>
10      <li>At least one lowercase character</li>
11      <li>Inclusion of at least one special character, e.g., ! @ # ?</li>
12  </ul>
13</div>
14</div>
15<div class="flex p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 " role="alert">
16<svg class="flex-shrink-0 inline w-4 h-4 me-3 mt-[2px]" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
17  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
18</svg>
19<span class="sr-only">Danger</span>
20<div>
21  <span class="font-medium">Ensure that these requirements are met:</span>
22    <ul class="mt-1.5 list-disc list-inside">
23      <li>At least 10 characters (and up to 100 characters)</li>
24      <li>At least one lowercase character</li>
25      <li>Inclusion of at least one special character, e.g., ! @ # ?</li>
26  </ul>
27</div>
28</div>

# Alert Dismissing

Code

1<div id="alert-1" class="flex items-center p-4 mb-4 text-blue-800 rounded-lg bg-blue-50 " role="alert">
2<svg class="flex-shrink-0 w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
3  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
4</svg>
5<span class="sr-only">Info</span>
6<div class="ms-3 text-sm font-medium">
7  A simple info alert with an <a href="#" class="font-semibold underline hover:no-underline">example link</a>. Give it a click if you like.
8</div>
9  <button type="button" class="ms-auto -mx-1.5 -my-1.5 bg-blue-50 text-blue-500 rounded-lg focus:ring-2 focus:ring-blue-400 p-1.5 hover:bg-blue-200 inline-flex items-center justify-center h-8 w-8" data-dismiss-target="#alert-1" aria-label="Close">
10    <span class="sr-only">Close</span>
11    <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
12      <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
13    </svg>
14</button>
15</div>
16<div id="alert-2" class="flex items-center p-4 mb-4 text-red-800 rounded-lg bg-red-50" role="alert">
17<svg class="flex-shrink-0 w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
18  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
19</svg>
20<span class="sr-only">Info</span>
21<div class="ms-3 text-sm font-medium">
22  A simple info alert with an <a href="#" class="font-semibold underline hover:no-underline">example link</a>. Give it a click if you like.
23</div>
24<button type="button" class="ms-auto -mx-1.5 -my-1.5 bg-red-50 text-red-500 rounded-lg focus:ring-2 focus:ring-red-400 p-1.5 hover:bg-red-200 inline-flex items-center justify-center h-8 w-8 " data-dismiss-target="#alert-2" aria-label="Close">
25  <span class="sr-only">Close</span>
26  <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
27    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
28  </svg>
29</button>
30</div>
31<div id="alert-3" class="flex items-center p-4 mb-4 text-green-800 rounded-lg bg-green-50 " role="alert">
32<svg class="flex-shrink-0 w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
33  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
34</svg>
35<span class="sr-only">Info</span>
36<div class="ms-3 text-sm font-medium">
37  A simple info alert with an <a href="#" class="font-semibold underline hover:no-underline">example link</a>. Give it a click if you like.
38</div>
39<button type="button" class="ms-auto -mx-1.5 -my-1.5 bg-green-50 text-green-500 rounded-lg focus:ring-2 focus:ring-green-400 p-1.5 hover:bg-green-200 inline-flex items-center justify-center h-8 w-8 " data-dismiss-target="#alert-3" aria-label="Close">
40  <span class="sr-only">Close</span>
41  <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
42    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
43  </svg>
44</button>
45</div>
46<div id="alert-4" class="flex items-center p-4 mb-4 text-yellow-800 rounded-lg bg-yellow-50 " role="alert">
47<svg class="flex-shrink-0 w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
48  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
49</svg>
50<span class="sr-only">Info</span>
51<div class="ms-3 text-sm font-medium">
52  A simple info alert with an <a href="#" class="font-semibold underline hover:no-underline">example link</a>. Give it a click if you like.
53</div>
54<button type="button" class="ms-auto -mx-1.5 -my-1.5 bg-yellow-50 text-yellow-500 rounded-lg focus:ring-2 focus:ring-yellow-400 p-1.5 hover:bg-yellow-200 inline-flex items-center justify-center h-8 w-8 " data-dismiss-target="#alert-4" aria-label="Close">
55  <span class="sr-only">Close</span>
56  <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
57    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
58  </svg>
59</button>
60</div>
61<div id="alert-5" class="flex items-center p-4 rounded-lg bg-gray-50 " role="alert">
62<svg class="flex-shrink-0 w-4 h-4 " aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
63  <path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
64</svg>
65<span class="sr-only">Info</span>
66<div class="ms-3 text-sm font-medium text-gray-800 ">
67  A simple dark alert with an <a href="#" class="font-semibold underline hover:no-underline">example link</a>. Give it a click if you like.
68</div>
69<button type="button" class="ms-auto -mx-1.5 -my-1.5 bg-gray-50 text-gray-500 rounded-lg focus:ring-2 focus:ring-gray-400 p-1.5 hover:bg-gray-200 inline-flex items-center justify-center h-8 w-8 " data-dismiss-target="#alert-5" aria-label="Close">
70  <span class="sr-only">Dismiss</span>
71  <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
72    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
73  </svg>
74</button>
75</div>