1.0.21 • Published 4 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
5 months ago
1.0.18
5 months ago
1.0.17
5 months ago
1.0.16
6 months ago
1.0.21
4 months ago
1.0.20
5 months ago
1.0.15
10 months ago
1.0.14
11 months ago
1.0.13
11 months ago
1.0.12
11 months ago
1.0.11
11 months ago
1.0.10
12 months ago
1.0.9
12 months ago
1.0.8
12 months ago
1.0.7
12 months ago
1.0.6
12 months ago
1.0.5
12 months ago
1.0.4
12 months ago
1.0.3
12 months ago
1.0.2
12 months ago
1.0.1
12 months ago
1.0.0
12 months ago