x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- Border Accent Danger -->
<div class="p-4 text-sm flex items-start bg-danger-soft text-fg-danger-strong border-t-4 border-danger-subtle" 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>
A simple danger alert. Give it a click if you like. </div>
</div>
<!-- Border Accent Info -->
<div class="p-4 text-sm flex items-start bg-brand-softer text-fg-brand-strong border-t-4 border-brand-subtle" 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>
A simple info alert. Give it a click if you like. </div>
</div>
<!-- Border Accent Success -->
<div class="p-4 text-sm flex items-start bg-success-soft text-fg-success-strong border-t-4 border-success-subtle" 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>
A simple success alert. Give it a click if you like. </div>
</div>
1
2
3
4
5
6
7
8
# Border Accent Danger
render(Flowbite::Alert.new(border_accent: true, style: :danger)) { "A simple danger alert. Give it a click if you like." }
# Border Accent Info
render(Flowbite::Alert.new(border_accent: true)) { "A simple info alert. Give it a click if you like." }
# Border Accent Success
render(Flowbite::Alert.new(border_accent: true, style: :success)) { "A simple success alert. Give it a click if you like." }