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

@ant-design/icons-svg

Package Overview
Dependencies
Maintainers
11
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/icons-svg

Abstract nodes for ant design icons.

  • 4.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4M
increased by3.06%
Maintainers
11
Weekly downloads
 
Created

What is @ant-design/icons-svg?

The @ant-design/icons-svg package provides a collection of SVG icons that are part of the Ant Design system, which is a design language for UI design. This package allows developers to use SVG icons in their web applications, providing a consistent look and feel that aligns with the Ant Design guidelines.

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

Importing and using individual SVG icons

This feature allows developers to import individual SVG icons from the package and use them in their React components. The example shows how to import the 'AccountBookFill' icon and use it within a React component.

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

// Usage in a React component
const MyComponent = () => (
  <svg {...AccountBookFill.props} />
);

Customizing SVG icon properties

Developers can customize the properties of SVG icons, such as 'fill', 'width', and 'height'. The example demonstrates how to override the default properties of the 'AccountBookFill' icon with custom values.

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

// Customizing the icon's properties
const customProps = {
  fill: 'currentColor',
  width: '1em',
  height: '1em'
};

// Usage in a React component
const MyComponent = () => (
  <svg {...AccountBookFill.props} {...customProps} />
);

Other packages similar to @ant-design/icons-svg

FAQs

Package last updated on 01 Feb 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