Socket
Socket
Sign inDemoInstall

@radix-ui/react-icons

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-icons

Radix UI React Icon Set


Version published
Weekly downloads
783K
decreased by-0.11%
Maintainers
6
Weekly downloads
 
Created

What is @radix-ui/react-icons?

@radix-ui/react-icons is a collection of high-quality, open-source icons for React applications. It provides a set of customizable and accessible icons that can be easily integrated into any React project.

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

Basic Icon Usage

This feature allows you to import and use individual icons from the @radix-ui/react-icons package. The example demonstrates how to import the CheckIcon and use it within a React component.

import { CheckIcon } from '@radix-ui/react-icons';

function App() {
  return (
    <div>
      <CheckIcon />
    </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 CheckIcon to 24x24 pixels.

import { CheckIcon } from '@radix-ui/react-icons';

function App() {
  return (
    <div>
      <CheckIcon width={24} height={24} />
    </div>
  );
}

Styling Icons

This feature allows you to apply custom styles to the icons using the style prop. The example demonstrates how to change the color of the CheckIcon to green.

import { CheckIcon } from '@radix-ui/react-icons';

function App() {
  return (
    <div>
      <CheckIcon style={{ color: 'green' }} />
    </div>
  );
}

Other packages similar to @radix-ui/react-icons

FAQs

Package last updated on 15 Jan 2021

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