diff --git a/README.md b/README.md
index a03e4399a..f6e783185 100644
--- a/README.md
+++ b/README.md
@@ -56,9 +56,11 @@ Implementation of the lucide icon library for web applications.
```sh
npm install lucide
+```
-#or
+or
+```sh
yarn add lucide
```
@@ -70,9 +72,11 @@ Implementation of the lucide icon library for react applications.
```sh
yarn add lucide-react
+```
-# or
+or
+```sh
npm install lucide-react
```
@@ -84,9 +88,11 @@ Implementation of the lucide icon library for React Native applications.
```sh
yarn add lucide-react-native
+```
-# or
+or
+```sh
npm install lucide-react-native
```
@@ -98,9 +104,11 @@ Implementation of the lucide icon library for vue applications.
```sh
yarn add lucide-vue
+```
-# or
+or
+```sh
npm install lucide-vue
```
@@ -112,9 +120,11 @@ Implementation of the lucide icon library for vue applications.
```sh
yarn add lucide-vue-next
+```
-# or
+or
+```sh
npm install lucide-vue-next
```
@@ -124,9 +134,11 @@ For more details, see the [documentation](https://github.com/lucide-icons/lucide
```sh
yarn add lucide-angular
+```
-# or
+or
+```sh
npm install lucide-angular
```
@@ -138,9 +150,11 @@ Implementation of the lucide icon library for preact applications.
```sh
yarn add lucide-preact
+```
-# or
+or
+```sh
npm install lucide-preact
```
@@ -157,9 +171,11 @@ NPM package
```sh
yarn add lucide-static
+```
-# or
+or
+```sh
npm install lucide-static
```
@@ -197,9 +213,11 @@ Implementation of the lucide icon library for Svelte applications.
```sh
yarn add lucide-svelte
+```
-# or
+or
+```sh
npm install lucide-svelte
```
@@ -211,9 +229,11 @@ Implementation of the lucide icon library for solid applications.
```sh
yarn add lucide-solid
+```
-#or
+or
+```sh
npm install lucide-solid
```
@@ -245,4 +265,3 @@ Thank you to all the people who contributed to Lucide!
-
diff --git a/docs/installation.md b/docs/installation.md
index 351f0f3b0..b6007870c 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -10,9 +10,11 @@ Implementation of the lucide icon library for web applications.
```bash
npm install lucide
+```
-#or
+or
+```sh
yarn add lucide
```
@@ -24,9 +26,11 @@ Implementation of the lucide icon library for react applications.
```bash
yarn add lucide-react
+```
-# or
+or
+```sh
npm install lucide-react
```
@@ -38,9 +42,11 @@ Implementation of the lucide icon library for vue applications.
```bash
yarn add lucide-vue
+```
-# or
+or
+```sh
npm install lucide-vue
```
@@ -52,9 +58,11 @@ Implementation of the lucide icon library for vue applications.
```bash
yarn add lucide-vue-next
+```
-# or
+or
+```sh
npm install lucide-vue-next
```
@@ -66,9 +74,11 @@ Implementation of the lucide icon library for vue applications.
```bash
yarn add lucide-svelte
+```
-# or
+or
+```sh
npm install lucide-svelte
```
@@ -78,9 +88,11 @@ For more details, see the [documentation](packages/lucide-svelte).
```bash
yarn add lucide-angular
+```
-# or
+or
+```sh
npm install lucide-angular
```
@@ -92,9 +104,11 @@ Implementation of the lucide icon library for preact applications.
```bash
yarn add lucide-preact
+```
-# or
+or
+```sh
npm install lucide-preact
```
@@ -106,7 +120,7 @@ The lucide figma plugin.
Visit [Figma community page](https://www.figma.com/community/plugin/939567362549682242/Lucide-Icons) to install the plugin.
-
+
## Laravel
diff --git a/docs/packages/lucide-angular.md b/docs/packages/lucide-angular.md
index 10e07cbd6..72651b7ef 100644
--- a/docs/packages/lucide-angular.md
+++ b/docs/packages/lucide-angular.md
@@ -4,11 +4,13 @@ Implementation of the lucide icon library for angular applications.
## Installation
-``` sh
+```sh
yarn add lucide-angular
+```
-# or
+or
+```sh
npm install lucide-angular
```
@@ -20,12 +22,12 @@ There are three ways for use this library.
After install `lucide-angular` change content of file `app.component.html` and `app.component.ts`.
-``` html
+```html
```
-``` js
+```js
// app.component.ts
import { Component, OnInit } from '@angular/core';
@@ -37,7 +39,6 @@ import { Activity } from 'lucide-angular/icons';
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
-
export class AppComponent implements OnInit {
ngOnInit(): void {
const div = document.getElementById('lucide-icon');
@@ -51,11 +52,11 @@ export class AppComponent implements OnInit {
}
```
-### Method 2: User __Tag__ with __name__ property
+### Method 2: User **Tag** with **name** property
After install `lucide-angular` change content of file `app.component.html`, `app.component.ts`, `app.component.css` and `app.module.ts`.
-``` js
+```js
// app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
@@ -65,32 +66,29 @@ import { AppComponent } from './app.component';
import { LucideAngularModule, AlarmCheck, Edit } from 'lucide-angular';
@NgModule({
- declarations: [
- AppComponent
- ],
+ declarations: [AppComponent],
imports: [
BrowserModule,
AppRoutingModule,
- LucideAngularModule.pick({ AlarmCheck, Edit }) // add all of icons that is imported.
+ LucideAngularModule.pick({ AlarmCheck, Edit }) // add all of icons that is imported.
],
providers: [],
bootstrap: [AppComponent]
})
-
-export class AppModule { }
+export class AppModule {}
```
-``` html
+```html
```
-### Method 3: User __Tag__ with __img__ property
+### Method 3: User **Tag** with **img** property
After install `lucide-angular` change content of file `app.component.html`, `app.component.ts`, `app.component.css` and `app.module.ts`.
-``` js
+```js
// app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
@@ -100,28 +98,21 @@ import { AppComponent } from './app.component';
import { LucideAngularModule } from 'lucide-angular';
@NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- AppRoutingModule,
- LucideAngularModule.pick({ })
- ],
+ declarations: [AppComponent],
+ imports: [BrowserModule, AppRoutingModule, LucideAngularModule.pick({})],
providers: [],
bootstrap: [AppComponent]
})
-
-export class AppModule { }
+export class AppModule {}
```
-``` xml
+```xml
```
-``` js
+```js
// app.component.ts
import { Component } from '@angular/core';
import { Airplay, Circle } from 'lucide-angular';
@@ -131,7 +122,6 @@ import { Airplay, Circle } from 'lucide-angular';
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
-
export class AppComponent {
ico1 = Airplay;
ico2 = Circle;
@@ -144,7 +134,7 @@ export class AppComponent {
In `Method 2`: import all icons in `app.module.ts` by:
-``` js
+```js
import { icons } from 'lucide-angular/icons';
diff --git a/docs/packages/lucide-preact.md b/docs/packages/lucide-preact.md
index 722860e33..d3a543b07 100644
--- a/docs/packages/lucide-preact.md
+++ b/docs/packages/lucide-preact.md
@@ -10,9 +10,11 @@ Implementation of the lucide icon library for preact applications.
```sh
yarn add lucide-preact
+```
-# or
+or
+```sh
npm install lucide-preact
```
@@ -25,13 +27,13 @@ Each icon can be imported as a preact component.
You can pass additional props to adjust the icon.
-``` js
+```js
import { Camera } from 'lucide-preact';
// Returns PreactComponent
// Usage
const App = () => {
- return
+ return ;
};
export default App;
@@ -39,20 +41,20 @@ export default App;
### Props
-| name | type | default
-| ------------ | -------- | --------
-| `size` | *Number* | 24
-| `color` | *String* | currentColor
-| `strokeWidth`| *Number* | 2
+| name | type | default |
+| ------------- | -------- | ------------ |
+| `size` | _Number_ | 24 |
+| `color` | _String_ | currentColor |
+| `strokeWidth` | _Number_ | 2 |
### Custom props / svg attributes
You can also pass custom props that will be added in the as attributes. With that you can modify the icons look by passing svg attributes.
-``` js
+```js
// Usage
const App = () => {
- return
+ return ;
};
```
@@ -62,17 +64,17 @@ const App = () => {
It is possible to create one generic icon component to load icons.
-> ⚠️ Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
+> ⚠️ Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
#### Icon Component Example
-``` js
+```js
import * as icons from 'lucide-preact';
-const Icon = ({name, color, size}) => {
+const Icon = ({ name, color, size }) => {
const LucideIcon = icons[name];
- return
+ return ;
};
export default Icon;
diff --git a/docs/packages/lucide-react-native.md b/docs/packages/lucide-react-native.md
index c4f45f4a5..9ccf3a08c 100644
--- a/docs/packages/lucide-react-native.md
+++ b/docs/packages/lucide-react-native.md
@@ -8,9 +8,11 @@ First, ensure that you have `react-native-svg@^12.0.0` installed. Then, install
```bash
yarn add lucide-react-native
+```
-# or
+or
+```sh
npm install lucide-react-native
```
diff --git a/docs/packages/lucide-react.md b/docs/packages/lucide-react.md
index 40bd1752d..ee8783204 100644
--- a/docs/packages/lucide-react.md
+++ b/docs/packages/lucide-react.md
@@ -4,11 +4,13 @@ Implementation of the lucide icon library for react applications
## Installation
-``` bash
+```bash
yarn add lucide-react
+```
-# or
+or
+```sh
npm install lucide-react
```
@@ -21,13 +23,13 @@ Each icon can be imported as a react component.
You can pass additional props to adjust the icon.
-``` js
+```js
import { Camera } from 'lucide-react';
// Returns ReactComponent
// Usage
const App = () => {
- return
+ return ;
};
export default App;
@@ -35,20 +37,20 @@ export default App;
### Props
-| name | type | default
-| ------------ | -------- | --------
-| `size` | *Number* | 24
-| `color` | *String* | currentColor
-| `strokeWidth`| *Number* | 2
+| name | type | default |
+| ------------- | -------- | ------------ |
+| `size` | _Number_ | 24 |
+| `color` | _String_ | currentColor |
+| `strokeWidth` | _Number_ | 2 |
### Custom props
You can also pass custom props that will be added in the svg as attributes.
-``` js
+```js
// Usage
const App = () => {
- return
+ return ;
};
```
@@ -56,17 +58,17 @@ const App = () => {
It is possible to create one generic icon component to load icons.
-> :warning: Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
+> :warning: Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
#### Icon Component Example
-``` js
+```js
import * as icons from 'lucide-react';
-const Icon = ({name, color, size}) => {
+const Icon = ({ name, color, size }) => {
const LucideIcon = icons[name];
- return
+ return ;
};
export default Icon;
diff --git a/docs/packages/lucide-static.md b/docs/packages/lucide-static.md
index e184a7905..a753b9147 100644
--- a/docs/packages/lucide-static.md
+++ b/docs/packages/lucide-static.md
@@ -19,23 +19,25 @@ This package is suitable for very specific use cases for example if you want to
```sh
yarn add lucide-static
+```
-# or
+or
+```sh
npm install lucide-static
```
### CDN
-``` html
+```html
-
+
```
@@ -50,14 +52,14 @@ Checkout the [codesandbox examples](https://codesandbox.io/s/using-the-svg-sprit
To use it in for example html:
-``` html
+```html
-
+
```
-``` css
+```css
.home-icon {
- background-image: url(~lucide-static/icons/home.svg)
+ background-image: url(~lucide-static/icons/home.svg);
}
```
@@ -69,7 +71,7 @@ You can simply import each svg by targeting `lucide-static/icons/{icon-name}.svg
To use svgs in your project you can for example use a [svg loader](https://v4.webpack.js.org/loaders/svg-inline-loader/).
```js
-import arrowRightIcon from 'lucide-static/icons/arrow-right'
+import arrowRightIcon from 'lucide-static/icons/arrow-right';
// return string of a svg
```
@@ -80,7 +82,7 @@ You may need additional loader for this.
```html
-
+