Card and Badge components for presenting data and status.
Summary
Functions
Renders a badge / pill label.
Examples
<.badge>Novo</.badge>
<.badge variant="green" dot>Ativo</.badge>
<.badge variant="red" size="lg">Erro</.badge>Attributes
variant(:string) - Defaults to"gray".size(:string) - Defaults to"md".dot(:boolean) - Defaults tofalse.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a content card with optional header and footer.
Examples
<.card>
Simple card content.
</.card>
<.card>
<:header>
<h2 class="font-semibold text-gray-900">Título</h2>
</:header>
Body content.
<:footer>
<.button size="sm">Guardar</.button>
</:footer>
</.card>Attributes
padding(:string) - Defaults to"md".class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
headerinner_block(required)footer