defmodule PyrauiWeb.DocsLive.BadgeCardDocs do use PyrauiWeb, :html def render(assigns) do ~H"""

Badge Card

Gamified badge card for achievements, loyalty programs, and progress tracking.

Badge Showcase

<%= for badge <- @demo_badges do %> <% end %>

    <.badge_card
      title="Collaboration Pro"
      description="Invite five teammates"
      icon="hero-users"
      rarity={:rare}
      progress={60}
      points={120}
    />
            

Tips

  • Use the rarity attr to theme border and icon colors.
  • Show progress bar for locked achievements with progress.
  • Include points and unlocked_at for richer context.
""" end end