"use client" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" export function MigrationGuide() { return ( Icon Library Migration Guide: Lucide → Heroicons We've switched from Lucide React to Heroicons. Here's how to update your code.

Import Changes

Old (Lucide)

                {`import { AlertCircle, Search, User } from 'lucide-react'`}
              

New (Heroicons)

                {`import { 
  ExclamationCircleIcon, 
  MagnifyingGlassIcon, 
  UserIcon 
} from "@heroicons/react/24/outline"`}
              

Usage Changes

Old (Lucide)

                {``}
              

New (Heroicons)

                {``}
              

Common Icon Name Mappings

Lucide Heroicons
AlertCircle ExclamationCircleIcon
AlertTriangle ExclamationTriangleIcon
Search MagnifyingGlassIcon
Settings Cog6ToothIcon
Mail EnvelopeIcon
X XMarkIcon
Info InformationCircleIcon
Download ArrowDownTrayIcon
Upload ArrowUpTrayIcon
ExternalLink ArrowTopRightOnSquareIcon

Variants

Heroicons provides two main variants: Outline and Solid. We're primarily using the Outline variant.

Outline Icons

                {`import { UserIcon } from "@heroicons/react/24/outline"`}
              

Solid Icons

                {`import { UserIcon } from "@heroicons/react/24/solid"`}
              
) }