🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@radix-ui/react-icons

Package Overview
Dependencies
Maintainers
0
Versions
10
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

1.3.2
latest
npm
Version published
Weekly downloads
1.5M
10.57%
Maintainers
0
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 14 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