x
1
2
3
4
5
6
7
8
9
<!-- Without Icon -->
<div class="p-4 text-sm bg-brand-softer text-fg-brand-strong rounded-base" role="alert">
<span class="font-medium">Info alert!</span>
Change a few things up and try submitting again.</div>
<!-- Without Icon Danger -->
<div class="p-4 text-sm bg-danger-soft text-fg-danger-strong rounded-base" role="alert">
<span class="font-medium">Danger alert!</span>
Change a few things up and try submitting again.</div>
1
2
3
4
5
# Without Icon
render(Flowbite::Alert.new(icon: false, title: "Info alert!")) { "Change a few things up and try submitting again." }
# Without Icon Danger
render(Flowbite::Alert.new(icon: false, style: :danger, title: "Danger alert!")) { "Change a few things up and try submitting again." }