<what>
props = "type, title"
defaults.type = "info"
defaults.title = ""
</what>
<div class="info-box info-box-#type#" style="border-radius: 0.5rem; padding: 1rem 1.25rem; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.375rem; border-left: 3px solid;">
<if title>
<div class="info-box-title" style="font-weight: 600; font-size: 0.875rem;">
<if type == info>
<span style="color: #1d4ed8;">#title#</span>
</if>
<if type == warning>
<span style="color: #92400e;">#title#</span>
</if>
<if type == success>
<span style="color: #065f46;">#title#</span>
</if>
</div>
</if>
<div class="info-box-body" style="font-size: 0.875rem; line-height: 1.6;">
<slot/>
</div>
</div>
<style>
.info-box-info {
background: #eff6ff;
border-color: #3b82f6;
color: #1e40af;
}
.info-box-warning {
background: #fffbeb;
border-color: #f59e0b;
color: #78350f;
}
.info-box-success {
background: #f0fdf4;
border-color: #22c55e;
color: #14532d;
}
</style>