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

@carbon/icons-react

Package Overview
Dependencies
Maintainers
13
Versions
340
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carbon/icons-react

React components for icons in digital and software products using the Carbon Design System

  • 11.53.0
  • next
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
13
Created

What is @carbon/icons-react?

@carbon/icons-react is a library of React components for IBM's Carbon Design System icons. It provides a comprehensive set of icons that can be easily integrated into React applications, ensuring consistency and adherence to the Carbon Design System.

What are @carbon/icons-react's main functionalities?

Basic Icon Usage

This feature allows you to import and use individual icons as React components. The example demonstrates how to import the 'Add32' icon and use it within a React component.

import { Add32 } from '@carbon/icons-react';

function App() {
  return (
    <div>
      <Add32 />
    </div>
  );
}

Customizing Icon Size

This feature allows you to customize the size of the icons by passing width and height properties. The example shows how to set the size of the 'Add32' icon to 64x64 pixels.

import { Add32 } from '@carbon/icons-react';

function App() {
  return (
    <div>
      <Add32 width={64} height={64} />
    </div>
  );
}

Applying Custom Styles

This feature allows you to apply custom styles to the icons using the style prop. The example demonstrates how to change the fill color of the 'Add32' icon to red.

import { Add32 } from '@carbon/icons-react';

function App() {
  return (
    <div>
      <Add32 style={{ fill: 'red' }} />
    </div>
  );
}

Other packages similar to @carbon/icons-react

Keywords

FAQs

Package last updated on 20 Nov 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