New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@phosphor-icons/react

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phosphor-icons/react

A clean and friendly icon family for React

  • 2.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
264K
increased by1.94%
Maintainers
0
Weekly downloads
 
Created

What is @phosphor-icons/react?

@phosphor-icons/react is a React component library for Phosphor Icons, a flexible icon family for interfaces, diagrams, presentations, and more. It allows you to easily integrate Phosphor Icons into your React applications.

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

Basic Icon Usage

This feature allows you to use Phosphor Icons in your React application by importing the desired icon and using it as a component.

import { PhosphorIcon } from '@phosphor-icons/react';

function App() {
  return (
    <div>
      <PhosphorIcon name="smiley" size={32} />
    </div>
  );
}

export default App;

Customizing Icon Size

You can customize the size of the icons by passing the `size` prop to the icon component.

import { PhosphorIcon } from '@phosphor-icons/react';

function App() {
  return (
    <div>
      <PhosphorIcon name="smiley" size={64} />
    </div>
  );
}

export default App;

Changing Icon Color

This feature allows you to change the color of the icons by passing the `color` prop to the icon component.

import { PhosphorIcon } from '@phosphor-icons/react';

function App() {
  return (
    <div>
      <PhosphorIcon name="smiley" color="red" />
    </div>
  );
}

export default App;

Using Different Icon Weights

You can use different icon weights (e.g., thin, light, regular, bold) by passing the `weight` prop to the icon component.

import { PhosphorIcon } from '@phosphor-icons/react';

function App() {
  return (
    <div>
      <PhosphorIcon name="smiley" weight="bold" />
    </div>
  );
}

export default App;

Other packages similar to @phosphor-icons/react

Keywords

FAQs

Package last updated on 29 Jun 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