# `PhoenixKitWeb.Components.Core.MessageTagBadge`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.87/lib/phoenix_kit_web/components/core/message_tag_badge.ex#L1)

Provides message tag badge component for email system.

Displays email type tag from message_tags JSONB field.
Used in email list view to show categorization tags.

# `message_tag_badge`

Renders a message tag badge if email_type exists in message_tags.

## Attributes
- `message_tags` - JSONB map with email metadata (required)
- `class` - Additional CSS classes (default: "badge-secondary badge-xs")

## Examples

    <.message_tag_badge message_tags={%{"email_type" => "marketing"}} />
    <.message_tag_badge message_tags={log.message_tags} class="badge-primary badge-sm" />
    <.message_tag_badge message_tags={nil} />  <%!-- No badge rendered --%>

## Attributes

* `message_tags` (`:map`) (required)
* `class` (`:string`) - Defaults to `"badge-secondary badge-xs"`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
