x
1
2
3
4
5
6
<div class="p-4 text-sm flex items-start bg-brand-softer text-fg-brand-strong rounded-base mb-4 shadow-md" 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>
Custom styled alert. </div>
</div>
1
render(Flowbite::Alert.new(class: ["mb-4", "shadow-md"])) { "Custom styled alert." }