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

@wordpress/icons

Package Overview
Dependencies
Maintainers
23
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/icons

WordPress Icons package, based on dashicon.

  • 10.11.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
23
Created

What is @wordpress/icons?

@wordpress/icons is a package that provides a collection of reusable icons for WordPress projects. These icons are designed to be used within the WordPress ecosystem, particularly in the Gutenberg editor, but can also be used in other React-based projects.

What are @wordpress/icons's main functionalities?

Importing Icons

You can import individual icons from the @wordpress/icons package. This allows you to use specific icons in your project without importing the entire library.

import { Icon, check } from '@wordpress/icons';

Using Icons in Components

You can use the imported icons within your React components. The Icon component from @wordpress/icons takes an icon prop, which is the specific icon you want to render.

import { Icon, check } from '@wordpress/icons';

const MyComponent = () => (
  <div>
    <Icon icon={check} />
  </div>
);

Customizing Icon Size

You can customize the size of the icons by passing a size prop to the Icon component. This allows you to adjust the icon size to fit your design requirements.

import { Icon, check } from '@wordpress/icons';

const MyComponent = () => (
  <div>
    <Icon icon={check} size={24} />
  </div>
);

Other packages similar to @wordpress/icons

Keywords

FAQs

Package last updated on 30 Oct 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