Files

287 lines
3.9 KiB
Markdown
Raw Permalink Normal View History

2021-10-01 09:19:36 +02:00
---
title: Installation
2026-03-20 17:04:28 +01:00
description: A guide on how to install Lucide, an open-source icon library, for various platforms and frameworks.
2021-10-01 09:19:36 +02:00
---
# Installation
## Web
2021-10-01 09:19:36 +02:00
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for web applications.
2021-10-01 09:19:36 +02:00
2023-06-04 16:59:38 +02:00
::: code-group
```sh [pnpm]
pnpm add lucide
2023-06-04 16:59:38 +02:00
```
```sh [yarn]
yarn add lucide
2023-06-04 16:59:38 +02:00
```
```sh [npm]
npm install lucide
```
```sh [bun]
bun add lucide
```
```sh [deno]
deno add lucide
```
2023-06-04 16:59:38 +02:00
:::
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./lucide/index.md).
## React
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for React applications.
2023-06-04 16:59:38 +02:00
::: code-group
```sh [pnpm]
pnpm add lucide-react
2023-06-04 16:59:38 +02:00
```
```sh [yarn]
yarn add lucide-react
```
2023-06-04 16:59:38 +02:00
```sh [npm]
npm install lucide-react
```
```sh [bun]
bun add lucide-react
```
```sh [deno]
deno add lucide-react
```
2023-06-04 16:59:38 +02:00
:::
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./react/index.md).
For React Native use the `lucide-react-native` package.
## Vue
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for Vue applications.
::: code-group
```sh [pnpm]
pnpm add @lucide/vue
```
```sh [yarn]
yarn add @lucide/vue
```
```sh [npm]
npm install @lucide/vue
```
```sh [bun]
bun add @lucide/vue
```
```sh [deno]
deno add @lucide/vue
```
:::
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./vue/index.md).
2022-02-17 17:46:55 +01:00
## Svelte
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for Svelte applications.
2022-02-17 17:46:55 +01:00
::: code-group
```sh [pnpm]
pnpm add @lucide/svelte
```
```sh [yarn]
yarn add @lucide/svelte
```
2022-02-17 17:46:55 +01:00
```sh [npm]
npm install @lucide/svelte
2022-02-17 17:46:55 +01:00
```
```sh [bun]
bun add @lucide/svelte
```
```sh [deno]
deno add @lucide/svelte
```
:::
> `@lucide/svelte` is only for Svelte 5, for Svelte 4 use the `lucide-svelte` package.
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./svelte/index.md).
## Solid
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for Solid applications.
::: code-group
```sh [pnpm]
pnpm add lucide-solid
```
```sh [yarn]
yarn add lucide-solid
```
```sh [npm]
npm install lucide-solid
```
```sh [bun]
bun add lucide-solid
```
```sh [deno]
deno add lucide-solid
```
:::
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./solid/index.md).
## Angular
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for Angular applications.
::: code-group
```sh [pnpm]
2026-03-20 17:04:28 +01:00
pnpm add @lucide/angular
```
```sh [yarn]
2026-03-20 17:04:28 +01:00
yarn add @lucide/angular
```
```sh [npm]
2026-03-20 17:04:28 +01:00
npm install @lucide/angular
```
```sh [bun]
2026-03-20 17:04:28 +01:00
bun add @lucide/angular
```
```sh [deno]
deno add @lucide/angular
```
:::
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./angular/index.md).
## Preact
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for preact applications.
::: code-group
```sh [pnpm]
pnpm add lucide-preact
```
```sh [yarn]
yarn add lucide-preact
```
```sh [npm]
npm install lucide-preact
```
```sh [bun]
bun add lucide-preact
```
```sh [deno]
deno add lucide-preact
```
:::
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./preact/index.md).
## Astro
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for Astro applications.
::: code-group
```sh [pnpm]
pnpm add @lucide/astro
```
```sh [yarn]
yarn add @lucide/astro
```
```sh [npm]
npm install @lucide/astro
```
```sh [bun]
bun add @lucide/astro
```
```sh [deno]
deno add @lucide/astro
```
:::
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./astro/index.md).
## Static usage
2026-03-20 17:04:28 +01:00
Implementation of the Lucide icon library for multiple usages that like to use: SVG files icons, SVG Sprite, Icon Fonts and static SVG strings export in Common JS modules (for NodeJS).
::: code-group
```sh [pnpm]
pnpm add lucide-static
```
```sh [yarn]
yarn add lucide-static
```
```sh [npm]
npm install lucide-static
```
```sh [bun]
bun add lucide-static
```
```sh [deno]
deno add lucide-static
```
:::
2026-03-20 17:04:28 +01:00
For more details, see the [documentation](./static/index.md).
## Figma
2026-03-20 17:04:28 +01:00
The Lucide Figma plugin.
Visit [Figma community page](https://www.figma.com/community/plugin/939567362549682242/Lucide-Icons) to install the plugin.
![Setting Page Size](https://www.figma.com/community/plugin/939567362549682242/thumbnail 'Figma Lucide Cover')