trophyso

Achievement Card

Cards 153

About

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Achievement Card to your project and fits it to your theme.

Code

How Achievement Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { AchievementCard } from "@/components/ui/achievement-card"

export default function DemoOne() {
  return (
    <AchievementCard
      highlightedAchievements={[
        { id: "highlight-1", name: "Wellness God", trigger: "streak", achievedAt: "2024-01-01T00:00:00Z", rarity: 8 },
        { id: "highlight-2", name: "10 day streak", trigger: "streak", achievedAt: "2024-01-01T00:00:00Z", rarity: 24 },
        { id: "highlight-3", name: "Chatbot King", trigger: "api", achievedAt: "2024-01-01T00:00:00Z", rarity: 5 },
      ]}
      achievements={[
        { id: "list-1", name: "Wellness God", description: "Meditate 30 days in a row", trigger: "streak", achievedAt: "2024-01-01T00:00:00Z" },
        { id: "list-2", name: "10 day streak", description: "Open app for 10 days", trigger: "streak", achievedAt: "2024-01-01T00:00:00Z", progress: 60 },
        { id: "list-3", name: "Chatbot King", description: "Chat with AI 500 times", trigger: "api", achievedAt: "2024-01-01T00:00:00Z" },
        { id: "list-4", name: "Fully Hydrated Bro", description: "Drink 5,000L of water total", trigger: "metric", achievedAt: "2024-01-01T00:00:00Z", progress: 32 },
      ]}
    />
  )
}

More by trophyso

View all
  • Leaderboard Card

    Leaderboard Card

    720
  • Streak Badge

    Streak Badge

    343
  • Leaderboard Podium

    Leaderboard Podium

    260
  • Points Chart

    Points Chart

    253
  • Achievement List

    Achievement List

    195
  • Leaderboard Rankings

    Leaderboard Rankings

    130
  • Achievement badge

    Achievement badge

    84
  • Achievement Unlocked

    Achievement Unlocked

    22

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    45
  • Folded Card

    Folded Card

    45
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    335
  • Statistics Card 10

    Statistics Card 10

    303
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    715
  • Product List 01

    Product List 01

    41