Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ant-design/icons

Package Overview
Dependencies
Maintainers
11
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/icons

[![NPM version](https://img.shields.io/npm/v/@ant-design/icons.svg?style=flat)](https://npmjs.org/package/@ant-design/icons) [![NPM downloads](http://img.shields.io/npm/dm/@ant-design/icons.svg?style=flat)](https://npmjs.org/package/@ant-design/icons)

  • 5.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7M
increased by2.42%
Maintainers
11
Weekly downloads
 
Created

What is @ant-design/icons?

The @ant-design/icons package provides a comprehensive collection of SVG icons for use in web development projects, specifically designed to be used with the Ant Design UI framework. It allows developers to easily incorporate icons into their applications for enhanced UI design and user experience.

What are @ant-design/icons's main functionalities?

Importing and using an icon

This feature allows developers to import specific icons from the package and use them in their React components. In this example, the 'UserOutlined' icon is imported and used inside an Avatar component.

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

<Avatar icon={<UserOutlined />} />;

Customizing icon properties

Developers can customize icons by passing style properties. This example demonstrates changing the color and font size of the 'HeartOutlined' icon.

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

<HeartOutlined style={{ color: 'hotpink', fontSize: '16px' }} />;

Using icons with Ant Design components

Icons from the package can be seamlessly integrated with other Ant Design components. Here, the 'DownloadOutlined' icon is used within a Button component to create a download button.

import { Button } from 'antd';
import { DownloadOutlined } from '@ant-design/icons';

<Button icon={<DownloadOutlined />} type="primary">Download</Button>;

Other packages similar to @ant-design/icons

FAQs

Package last updated on 31 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc