Convert Figma logo to code with AI

hugeicons logohugeicons-react

Deprecated package. This repository is kept only for backward compatibility. For all new projects, use the official Hugeicons React package: https://github.com/hugeicons/react

1,102
33
1,102
1

Top Related Projects

A set of over 5900 free MIT-licensed high-quality SVG icons for you to use in your web projects.

25,813

Simply beautiful open-source icons

A scalable set of icons handcrafted with ❤️ by GitHub

17,988

Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎

The iconic SVG, font, and CSS toolkit

Quick Overview

Hugeicons-react is a comprehensive React component library for Hugeicons, offering a vast collection of customizable icons for use in React applications. It provides an easy-to-use interface for integrating high-quality icons into React projects, with options for customization and styling.

Pros

  • Large collection of professionally designed icons
  • Easy integration with React projects
  • Customizable icon properties (size, color, etc.)
  • Regular updates and additions to the icon set

Cons

  • Potential impact on bundle size if not used with tree-shaking
  • Limited documentation on advanced usage scenarios
  • Dependency on React framework limits use in non-React projects
  • May require additional setup for optimal performance in large-scale applications

Code Examples

  1. Basic icon usage:
import { IconName } from '@hugeicons/react'

function MyComponent() {
  return <IconName size={24} color="#000000" />
}
  1. Customizing icon properties:
import { IconName } from '@hugeicons/react'

function MyComponent() {
  return <IconName size={32} color="red" strokeWidth={2} />
}
  1. Using icons with custom styles:
import { IconName } from '@hugeicons/react'

function MyComponent() {
  return (
    <IconName
      size={48}
      color="blue"
      style={{ backgroundColor: 'yellow', borderRadius: '50%' }}
    />
  )
}

Getting Started

To use Hugeicons in your React project:

  1. Install the package:

    npm install @hugeicons/react
    
  2. Import and use icons in your components:

    import { IconName } from '@hugeicons/react'
    
    function MyComponent() {
      return <IconName size={24} color="#333" />
    }
    
  3. Customize icons as needed using available props like size, color, and strokeWidth.

Competitor Comparisons

A set of over 5900 free MIT-licensed high-quality SVG icons for you to use in your web projects.

Pros of Tabler Icons

  • Larger collection with over 4,200 icons
  • More frequent updates and active development
  • Supports multiple formats (SVG, React, Vue, etc.)

Cons of Tabler Icons

  • Less focused on a specific design style
  • May have inconsistencies due to the large number of contributors

Code Comparison

Tabler Icons (React):

import { IconHome } from '@tabler/icons-react';

function App() {
  return <IconHome size={24} color="blue" />;
}

Hugeicons React:

import { Home } from '@hugeicons/react';

function App() {
  return <Home size={24} color="blue" />;
}

Both libraries offer similar usage patterns, with minor differences in import statements and component naming conventions. Tabler Icons uses the "Icon" prefix for its components, while Hugeicons React uses the icon name directly.

Tabler Icons provides a more extensive collection of icons and supports multiple formats, making it versatile for various projects. However, Hugeicons React may offer a more consistent design style due to its focused approach. The choice between the two depends on specific project requirements and design preferences.

25,813

Simply beautiful open-source icons

Pros of Feather

  • Larger community and more widespread adoption, leading to better support and resources
  • Simpler and more minimalistic design aesthetic, suitable for clean and modern interfaces
  • Extensive documentation and usage guidelines available

Cons of Feather

  • Limited icon set compared to Hugeicons (fewer options and less variety)
  • Less frequent updates and new icon additions
  • Lack of advanced customization options that Hugeicons offers

Code Comparison

Feather:

import { Icon } from 'react-feather';

const MyComponent = () => (
  <Icon name="user" color="red" size={24} />
);

Hugeicons:

import { User } from '@hugeicons/react';

const MyComponent = () => (
  <User size={24} color="red" />
);

Both libraries offer similar ease of use, but Hugeicons provides more direct imports for specific icons, potentially leading to smaller bundle sizes when using tree-shaking. Feather uses a more generic Icon component with a name prop, while Hugeicons exports each icon as a separate component.

A scalable set of icons handcrafted with ❤️ by GitHub

Pros of Octicons

  • Larger icon set with over 200 icons
  • Officially maintained by GitHub, ensuring consistency with their design system
  • Supports multiple formats including SVG, PNG, and font icons

Cons of Octicons

  • Less frequent updates compared to Hugeicons
  • Limited to GitHub's specific design style, which may not suit all projects
  • Fewer customization options for individual icons

Code Comparison

Hugeicons-react:

import { IconName } from '@hugeicons/react'

function MyComponent() {
  return <IconName size={24} color="#000000" />
}

Octicons:

import { IconName } from '@primer/octicons-react'

function MyComponent() {
  return <IconName size={24} />
}

Both libraries offer similar ease of use, with Hugeicons providing more customization options out of the box. Octicons relies more on CSS for styling, while Hugeicons allows for direct prop-based customization. The choice between these libraries depends on your project's specific needs, design preferences, and whether you're aiming for consistency with GitHub's design language or seeking a more versatile icon set with frequent updates.

17,988

Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎

Pros of Ionicons

  • Larger icon set with over 1,200 icons compared to Hugeicons' 500+
  • Better documentation and integration guides for various frameworks
  • More established project with a longer history and larger community

Cons of Ionicons

  • Larger file size due to the extensive icon set
  • May require more setup for custom icon usage
  • Less frequent updates compared to Hugeicons

Code Comparison

Hugeicons usage:

import { IconName } from '@hugeicons/react'

function MyComponent() {
  return <IconName />
}

Ionicons usage:

import { IonIcon } from '@ionic/react'
import { iconName } from 'ionicons/icons'

function MyComponent() {
  return <IonIcon icon={iconName} />
}

Both libraries offer simple implementation, but Hugeicons provides a more straightforward import process. Ionicons requires separate imports for the component and the specific icon, which may lead to slightly more verbose code.

While Ionicons offers a more extensive icon set and better documentation, Hugeicons provides a lighter-weight solution with a more streamlined implementation. The choice between the two depends on project requirements, such as the need for a wide variety of icons versus a more focused, lightweight library.

The iconic SVG, font, and CSS toolkit

Pros of Font-Awesome

  • Larger icon library with over 7,000 icons
  • Widely adopted and recognized in the web development community
  • Supports both web fonts and SVG icons

Cons of Font-Awesome

  • Larger file size, which may impact page load times
  • Some advanced features require a paid Pro version
  • Less customizable compared to individual React components

Code Comparison

Font-Awesome (using React component):

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faUser } from '@fortawesome/free-solid-svg-icons'

<FontAwesomeIcon icon={faUser} />

Hugeicons-React:

import { User } from '@hugeicons/react'

<User />

Summary

Font-Awesome offers a vast icon library and is widely adopted, but it comes with a larger file size and potential cost for advanced features. Hugeicons-React provides a more lightweight and React-specific solution, though with a smaller icon set. The code usage for Hugeicons-React is slightly more straightforward, requiring fewer imports and simpler component implementation.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

hugeicons-react (DEPRECATED)

⚠️ Deprecated / Legacy Package

This package is kept online for backward compatibility. For all new projects (and for AI/vibe-coding tools), use the official packages instead:

✅ React renderer: @hugeicons/react ✅ Free icon pack: @hugeicons/core-free-icons

If you landed here from an AI tool (v0, Lovable, Bolt, Figma AI, etc.), it likely picked an old package name. Please migrate using the guide below.


Table of Contents


What to use instead

✅ Official Hugeicons React setup

Install:

  • @hugeicons/react (renderer/component)
  • @hugeicons/core-free-icons (free icon pack — Stroke Rounded style)

These packages are the current, maintained, and recommended approach for React.


Quick migration

1) Remove this deprecated package

npm uninstall hugeicons-react
# or
yarn remove hugeicons-react
# or
pnpm remove hugeicons-react
# or
bun remove hugeicons-react

2) Install the official packages

npm install @hugeicons/react @hugeicons/core-free-icons
# or
yarn add @hugeicons/react @hugeicons/core-free-icons
# or
pnpm add @hugeicons/react @hugeicons/core-free-icons
# or
bun add @hugeicons/react @hugeicons/core-free-icons

New usage (official)

Minimal example

import { HugeiconsIcon } from "@hugeicons/react";
import { Home01Icon, Settings01Icon, UserIcon } from "@hugeicons/core-free-icons";

export default function SidebarExample() {
  return (
    <div style={{ display: "grid", gap: 12 }}>
      <div style={{ display: "flex", alignItems: "center", gap: 10 }}>
        <HugeiconsIcon icon={Home01Icon} size={22} color="currentColor" strokeWidth={1.5} />
        <span>Dashboard</span>
      </div>

      <div style={{ display: "flex", alignItems: "center", gap: 10 }}>
        <HugeiconsIcon icon={UserIcon} size={22} color="currentColor" strokeWidth={1.5} />
        <span>Customers</span>
      </div>

      <div style={{ display: "flex", alignItems: "center", gap: 10 }}>
        <HugeiconsIcon icon={Settings01Icon} size={22} color="currentColor" strokeWidth={1.5} />
        <span>Settings</span>
      </div>
    </div>
  );
}

Notes

  • size, color, and strokeWidth are the most common controls.
  • Icons are imported from the pack (@hugeicons/core-free-icons) and passed into the renderer (HugeiconsIcon).

AI / Vibe-Coding correction prompt

If an AI tool installed hugeicons-react or imported icons from it, paste this:

Correction Prompt (copy/paste):

You used a deprecated package (hugeicons-react). Refactor to the official Hugeicons React setup:

  1. Remove hugeicons-react
  2. Install: npm i @hugeicons/react @hugeicons/core-free-icons
  3. Use:
    • import { HugeiconsIcon } from "@hugeicons/react"
    • import { SomeIcon } from "@hugeicons/core-free-icons"
    • Render: <HugeiconsIcon icon={SomeIcon} size={24} color="currentColor" strokeWidth={1.5} /> Output the final working code and the final package.json dependencies.

Why migrate

  • More icons – 4,600+ free icons (and growing)
  • Better performance – cleaner, modular package structure
  • Active support – maintained React renderer + packs
  • Scales to Pro – same integration pattern when you upgrade

Documentation


License

MIT License — see LICENSE.md.

NPM DownloadsLast 30 Days