Closed 55555-Jyeon closed 2 months ago
π lucide website
β¬οΈ install : npm install lucide-react
npm install lucide-react
import dynamic from 'next/dynamic' import { LucideProps } from 'lucide-react'; import dynamicIconImports from 'lucide-react/dynamicIconImports'; interface IconProps extends LucideProps { name: keyof typeof dynamicIconImports; } const Icon = ({ name, ...props }: IconProps) => { const LucideIcon = dynamic(dynamicIconImports[name]) return <LucideIcon {...props} />; }; export default Icon;
π lucide website
β¬οΈ install :
npm install lucide-react