1.0.21 • Published 5 months ago
lucide-icon-component v1.0.21
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.
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;
1.0.19
6 months ago
1.0.18
6 months ago
1.0.17
6 months ago
1.0.16
8 months ago
1.0.21
5 months ago
1.0.20
6 months ago
1.0.15
11 months ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago