1.0.21 • Published 1 year ago

lucide-icon-component v1.0.21

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago