Convert Figma logo to code with AI

ant-design logoant-design-icons

⭐ Ant Design SVG Icons

1,010
588
1,010
124

Top Related Projects

25,411

Simply beautiful open-source icons

The iconic SVG, font, and CSS toolkit

Material Design icons by Google (Material Symbols)

17,753

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

A scalable set of icons handcrafted with <3 by GitHub

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

Quick Overview

Ant Design Icons is an official React component library for Ant Design icons. It provides a comprehensive set of high-quality SVG icons that can be easily integrated into React applications. The library is designed to work seamlessly with the Ant Design ecosystem, offering a consistent and professional look for user interfaces.

Pros

  • Large collection of well-designed, customizable icons
  • Easy integration with React and Ant Design components
  • Supports both static and dynamic icon rendering
  • Lightweight and optimized for performance

Cons

  • Limited to React applications, not suitable for other frameworks
  • Requires additional setup for custom icon usage
  • May have a learning curve for developers new to Ant Design ecosystem
  • Regular updates might require occasional adjustments to existing code

Code Examples

  1. Basic usage of an icon:
import { SmileOutlined } from '@ant-design/icons';

const MyComponent = () => (
  <div>
    <SmileOutlined />
  </div>
);
  1. Customizing icon properties:
import { HomeOutlined } from '@ant-design/icons';

const MyComponent = () => (
  <HomeOutlined
    style={{ fontSize: '24px', color: 'blue' }}
    spin
  />
);
  1. Using a custom SVG icon:
import { createFromIconfontCN } from '@ant-design/icons';

const MyIcon = createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js',
});

const MyComponent = () => (
  <MyIcon type="icon-example" />
);

Getting Started

To use Ant Design Icons in your React project:

  1. Install the package:
npm install @ant-design/icons
  1. Import and use icons in your components:
import React from 'react';
import { StarOutlined, StarFilled, StarTwoTone } from '@ant-design/icons';

const IconExample = () => (
  <div>
    <StarOutlined />
    <StarFilled />
    <StarTwoTone twoToneColor="#eb2f96" />
  </div>
);

export default IconExample;

For more advanced usage and customization options, refer to the official documentation.

Competitor Comparisons

25,411

Simply beautiful open-source icons

Pros of Feather

  • Simpler and more minimalistic design aesthetic
  • Lighter weight with fewer icons, potentially faster load times
  • Easier customization with SVG format

Cons of Feather

  • Limited icon set compared to Ant Design Icons
  • Less frequent updates and new icon additions
  • May not have specific icons needed for certain UI frameworks

Code Comparison

Feather:

import { Icon } from 'react-feather';

<Icon.Heart />
<Icon.Star size={48} color="red" />

Ant Design Icons:

import { HeartOutlined, StarFilled } from '@ant-design/icons';

<HeartOutlined />
<StarFilled style={{ fontSize: '48px', color: 'red' }} />

Both libraries offer easy-to-use React components, but Ant Design Icons provides more specific icon imports and uses inline styles for customization, while Feather uses props for size and color adjustments.

Feather is ideal for projects requiring a clean, minimalist icon set with easy customization. Ant Design Icons is better suited for larger projects, especially those using the Ant Design framework, due to its extensive icon collection and tight integration with the Ant Design ecosystem.

The iconic SVG, font, and CSS toolkit

Pros of Font-Awesome

  • Larger icon set with over 7,000 icons, offering more variety
  • Well-established and widely recognized in the web development community
  • Supports both web fonts and SVG icons, providing flexibility in implementation

Cons of Font-Awesome

  • Larger file size, which may impact page load times
  • Some advanced features and icons require a paid subscription
  • Less focused on specific design systems or frameworks

Code Comparison

Font-Awesome (using web fonts):

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<i class="fas fa-user"></i>

Ant Design Icons (using React):

import { UserOutlined } from '@ant-design/icons';

<UserOutlined />

Font-Awesome offers a more traditional approach with CSS classes, while Ant Design Icons provides a more React-friendly component-based implementation. Ant Design Icons is specifically tailored for use with the Ant Design system, making it a better choice for projects already using that framework. However, Font-Awesome's extensive icon library and widespread adoption make it a versatile option for various web projects.

Material Design icons by Google (Material Symbols)

Pros of Material Design Icons

  • Extensive collection with over 2,000 icons in various styles and themes
  • Widely recognized and used across Google products and many third-party applications
  • Offers multiple file formats (SVG, PNG, AI) for versatile usage

Cons of Material Design Icons

  • Less frequent updates compared to Ant Design Icons
  • May require more manual work to integrate into certain frameworks or design systems

Code Comparison

Material Design Icons:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<i class="material-icons">face</i>

Ant Design Icons:

import { SmileOutlined } from '@ant-design/icons';

const IconExample = () => <SmileOutlined />;

Key Differences

  • Material Design Icons offers a broader range of icons but may require more setup for custom implementations
  • Ant Design Icons provides a more streamlined integration with React and Ant Design ecosystem
  • Material Design Icons supports multiple file formats, while Ant Design Icons focuses on SVG and React components

Use Cases

  • Material Design Icons: Ideal for projects aligned with Google's design language or requiring a vast icon library
  • Ant Design Icons: Best suited for React-based projects, especially those using the Ant Design framework
17,753

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 Ant Design Icons' ~800
  • Supports multiple file formats (SVG, WebFont, PNG, and JSX)
  • Includes a custom icon creation tool for easy customization

Cons of Ionicons

  • Larger file size due to the extensive icon set
  • Less focused on specific design language compared to Ant Design Icons
  • May require more effort to integrate with non-Ionic frameworks

Code Comparison

Ionicons usage:

<ion-icon name="heart"></ion-icon>

Ant Design Icons usage:

import { HeartOutlined } from '@ant-design/icons';

<HeartOutlined />

Both libraries offer simple implementation, but Ionicons uses a more traditional HTML-like syntax, while Ant Design Icons follows a React component approach.

Summary

Ionicons offers a larger, more versatile icon set with multiple file format support and a custom icon creation tool. However, it may have a larger file size and require more effort to integrate with non-Ionic frameworks. Ant Design Icons, on the other hand, provides a more focused set of icons aligned with the Ant Design language and easier integration with React applications. The choice between the two depends on the specific project requirements, design preferences, and framework compatibility.

A scalable set of icons handcrafted with <3 by GitHub

Pros of Octicons

  • Extensive set of GitHub-specific icons, ideal for GitHub-related projects
  • SVG-based icons with multiple size options for better scalability
  • Well-documented API and usage guidelines

Cons of Octicons

  • Limited to GitHub-style iconography, less versatile for general-purpose use
  • Fewer icon options compared to Ant Design Icons
  • Less frequent updates and additions to the icon set

Code Comparison

Octicons usage:

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

function App() {
  return <MarkGithubIcon size={24} />
}

Ant Design Icons usage:

import { GithubOutlined } from '@ant-design/icons'

function App() {
  return <GithubOutlined style={{ fontSize: 24 }} />
}

Both libraries offer React components for easy integration, but Octicons provides more size options out of the box, while Ant Design Icons relies on CSS styling for size adjustments. Octicons focuses on GitHub-specific icons, making it a better choice for GitHub-related projects. However, Ant Design Icons offers a more extensive and diverse set of icons, making it more suitable for general-purpose applications and design systems.

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

Pros of Tabler Icons

  • Larger icon set with over 3,500 icons compared to Ant Design Icons' ~800
  • Offers both SVG and web font versions for flexible implementation
  • Includes a wider variety of icon styles and categories

Cons of Tabler Icons

  • Less integration with specific UI frameworks (Ant Design Icons is tailored for Ant Design)
  • May require more manual setup and configuration in some projects
  • Potentially larger file size due to the extensive icon set

Code Comparison

Tabler Icons usage:

<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
  <circle cx="12" cy="7" r="4" />
  <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
</svg>

Ant Design Icons usage:

import { UserOutlined } from '@ant-design/icons';

const App = () => (
  <UserOutlined style={{ fontSize: '24px' }} />
);

Both icon libraries offer easy-to-use implementations, with Tabler Icons providing more flexibility in terms of customization and Ant Design Icons offering a more streamlined integration with the Ant Design ecosystem.

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

logo

⭐ The abstract trees of the Ant Design SVG icons.

CircleCI status lerna

Packages

FrameworkPackage nameLatest VersionDownload stats
Vanilla@ant-design/icons-svgNPM versionNPM downloads
React@ant-design/iconsNPM versionNPM downloads
React Native@ant-design/icons-react-nativeNPM versionNPM downloads
Angular@ant-design/icons-angularNPM versionNPM downloads
Vue@ant-design/icons-vueNPM versionNPM downloads

Contribution Guides 贡献指南

License

MIT License

NPM DownloadsLast 30 Days