mirror of
https://github.com/danbulant/lucide
synced 2026-05-19 04:18:41 +00:00
docs: add category features and class/style props (#81)
This commit is contained in:
parent
c29ff0a38e
commit
6079efb68b
5 changed files with 44 additions and 28 deletions
|
|
@ -4,7 +4,7 @@ repos:
|
|||
hooks:
|
||||
- id: prettier
|
||||
additional_dependencies:
|
||||
- prettier@^3.3.3
|
||||
- prettier@^3.5.3
|
||||
- repo: https://github.com/doublify/pre-commit-rust
|
||||
rev: v1.0
|
||||
hooks:
|
||||
|
|
|
|||
|
|
@ -5,7 +5,11 @@ Implementation of the Lucide icon library for [Dioxus](https://dioxuslabs.com/)
|
|||
## Installation
|
||||
|
||||
```shell
|
||||
cargo add lucide-dioxus
|
||||
# Selective categories (see https://lucide.dev/icons/categories)
|
||||
cargo add lucide-dioxus --features accessibility,communication
|
||||
|
||||
# All categories
|
||||
cargo add lucide-dioxus --features all-icons
|
||||
```
|
||||
|
||||
- [View on crates.io](https://crates.io/crates/lucide-dioxus)
|
||||
|
|
@ -32,12 +36,14 @@ fn App() -> Element {
|
|||
## Props
|
||||
|
||||
| Name | Type | Default |
|
||||
| ----------------------- | -------- | ---------------- |
|
||||
| ----------------------- | ---------------- | ---------------- |
|
||||
| `size` | `usize` | `24` |
|
||||
| `color` | `String` | `"currentColor"` |
|
||||
| `fill` | `String` | `"none"` |
|
||||
| `stroke_width` | `usize` | `2` |
|
||||
| `absolute_stroke_width` | `bool` | `false` |
|
||||
| `class` | `Option<String>` | - |
|
||||
| `style` | `Option<String>` | - |
|
||||
|
||||
## Icons
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,11 @@ Implementation of the Lucide icon library for [Leptos](https://leptos.dev/) appl
|
|||
Install the icons from your command line.
|
||||
|
||||
```shell
|
||||
cargo add lucide-leptos
|
||||
# Selective categories (see https://lucide.dev/icons/categories)
|
||||
cargo add lucide-leptos --features accessibility,communication
|
||||
|
||||
# All categories
|
||||
cargo add lucide-leptos --features all-icons
|
||||
```
|
||||
|
||||
- [View on crates.io](https://crates.io/crates/lucide-leptos)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,11 @@ Implementation of the Lucide icon library for [Yew](https://yew.rs/) application
|
|||
Install the icons from your command line.
|
||||
|
||||
```shell
|
||||
cargo add lucide-yew
|
||||
# Selective categories (see https://lucide.dev/icons/categories)
|
||||
cargo add lucide-yew --features accessibility,communication
|
||||
|
||||
# All categories
|
||||
cargo add lucide-yew --features all-icons
|
||||
```
|
||||
|
||||
- [View on crates.io](https://crates.io/crates/lucide-yew)
|
||||
|
|
@ -31,12 +35,14 @@ fn App() -> Html {
|
|||
## Props
|
||||
|
||||
| Name | Type | Default |
|
||||
| ----------------------- | -------- | ---------------- |
|
||||
| ----------------------- | ------------------- | ---------------- |
|
||||
| `size` | `usize` | `24` |
|
||||
| `color` | `String` | `"currentColor"` |
|
||||
| `fill` | `String` | `"none"` |
|
||||
| `color` | `AttrValue` | `"currentColor"` |
|
||||
| `fill` | `AttrValue` | `"none"` |
|
||||
| `stroke_width` | `usize` | `2` |
|
||||
| `absolute_stroke_width` | `bool` | `false` |
|
||||
| `class` | `Classes` | - |
|
||||
| `style` | `Option<AttrValue>` | - |
|
||||
|
||||
## Icons
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"private": true,
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.3.3",
|
||||
"prettier": "^3.5.3",
|
||||
"tailwindcss": "^3.4.17"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue