New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lucide-icon-component

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucide-icon-component

A React component for Lucide Icons

latest
Source
npmnpm
Version
1.0.28
Version published
Weekly downloads
2
-81.82%
Maintainers
1
Weekly downloads
 
Created
Source

Lucide Icon Component

A simple, type-safe React component for displaying Lucide icons with autocomplete functionality.

Installation

npm i lucide-icon-component

Usage

import Icon from 'lucide-icon-component';

<Icon icon="user-check" size={24} />;

Autocomplete

The icon prop is type-safe, so you can use autocomplete to see all available icons.

Icon Component Example

Props

  • icon (string): Specifies the name of the Lucide icon (type-safe).
  • size (number): Optional. Specifies the size of the icon in pixels. The default value is 18.
  • className (string): Optional. Specifies the class name of the icon.
  • strokeWidth (number): Optional. Specifies the stroke width of the icon. The default value is 2.

Types

  • LucideIconNames: A union type of all Lucide icon names which can be used to specify the icon prop.
icon: LucideIconNames;

Keywords

lucide

FAQs

Package last updated on 12 Apr 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