x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!-- Bordered Danger -->
<div class="p-4 text-sm flex items-start bg-danger-soft text-fg-danger-strong border border-danger-subtle rounded-base" role="alert">
<svg aria-hidden="true" class="w-4 h-4 shrink-0 me-2 mt-0.5" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" /></svg>
<span class="sr-only">Danger</span>
<div>
<span class="font-medium me-1">Danger alert!</span>
Change a few things up and try submitting again. </div>
</div>
<!-- Bordered Dark -->
<div class="p-4 text-sm flex items-start bg-neutral-secondary-medium text-heading border border-default-medium rounded-base" role="alert">
<svg aria-hidden="true" class="w-4 h-4 shrink-0 me-2 mt-0.5" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" /></svg>
<span class="sr-only">Dark</span>
<div>
<span class="font-medium me-1">Dark alert!</span>
Change a few things up and try submitting again. </div>
</div>
<!-- Bordered Info -->
<div class="p-4 text-sm flex items-start bg-brand-softer text-fg-brand-strong border border-brand-subtle rounded-base" role="alert">
<svg aria-hidden="true" class="w-4 h-4 shrink-0 me-2 mt-0.5" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" /></svg>
<span class="sr-only">Info</span>
<div>
<span class="font-medium me-1">Info alert!</span>
Change a few things up and try submitting again. </div>
</div>
<!-- Bordered Success -->
<div class="p-4 text-sm flex items-start bg-success-soft text-fg-success-strong border border-success-subtle rounded-base" role="alert">
<svg aria-hidden="true" class="w-4 h-4 shrink-0 me-2 mt-0.5" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" /></svg>
<span class="sr-only">Success</span>
<div>
<span class="font-medium me-1">Success alert!</span>
Change a few things up and try submitting again. </div>
</div>
<!-- Bordered Warning -->
<div class="p-4 text-sm flex items-start bg-warning-soft text-fg-warning border border-warning-subtle rounded-base" role="alert">
<svg aria-hidden="true" class="w-4 h-4 shrink-0 me-2 mt-0.5" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" /></svg>
<span class="sr-only">Warning</span>
<div>
<span class="font-medium me-1">Warning alert!</span>
Change a few things up and try submitting again. </div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Bordered Danger
render(Flowbite::Alert.new(bordered: true, style: :danger, title: "Danger alert!")) { "Change a few things up and try submitting again." }
# Bordered Dark
render(Flowbite::Alert.new(bordered: true, style: :dark, title: "Dark alert!")) { "Change a few things up and try submitting again." }
# Bordered Info
render(Flowbite::Alert.new(bordered: true, title: "Info alert!")) { "Change a few things up and try submitting again." }
# Bordered Success
render(Flowbite::Alert.new(bordered: true, style: :success, title: "Success alert!")) { "Change a few things up and try submitting again." }
# Bordered Warning
render(Flowbite::Alert.new(bordered: true, style: :warning, title: "Warning alert!")) { "Change a few things up and try submitting again." }