docs: add category features and class/style props (#81)

This commit is contained in:
Daniëlle Huisman 2025-05-17 01:13:08 +02:00 committed by GitHub
parent c29ff0a38e
commit 6079efb68b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 44 additions and 28 deletions

View file

@ -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:

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -7,7 +7,7 @@
"private": true,
"scripts": {},
"devDependencies": {
"prettier": "^3.3.3",
"prettier": "^3.5.3",
"tailwindcss": "^3.4.17"
},
"engines": {