Socket
Book a DemoInstallSign in
Socket

@phosphor-icons/react

Package Overview
Dependencies
Maintainers
1
Versions
32
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.10
latest
Source
npmnpm
Version published
Weekly downloads
460K
0.09%
Maintainers
1
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

react

FAQs

Package last updated on 22 May 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.