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,12 +5,16 @@ 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)
- [View on docs.rs](https://docs.rs/lucide-dioxus/latest/lucide_dioxus/)
- [View source](https://github.com/RustForWeb/lucide/tree/main/packages/dioxus)
- [View on crates.io](https://crates.io/crates/lucide-dioxus)
- [View on docs.rs](https://docs.rs/lucide-dioxus/latest/lucide_dioxus/)
- [View source](https://github.com/RustForWeb/lucide/tree/main/packages/dioxus)
## Usage
@ -31,13 +35,15 @@ 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` |
| 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,12 +7,16 @@ 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 on docs.rs](https://docs.rs/lucide-leptos/latest/lucide_leptos/)
- [View source](https://github.com/RustForWeb/lucide/tree/main/packages/leptos)
- [View on crates.io](https://crates.io/crates/lucide-leptos)
- [View on docs.rs](https://docs.rs/lucide-leptos/latest/lucide_leptos/)
- [View source](https://github.com/RustForWeb/lucide/tree/main/packages/leptos)
## Usage

View file

@ -7,12 +7,16 @@ 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)
- [View on docs.rs](https://docs.rs/lucide-yew/latest/lucide_yew/)
- [View source](https://github.com/RustForWeb/lucide/tree/main/packages/yew)
- [View on crates.io](https://crates.io/crates/lucide-yew)
- [View on docs.rs](https://docs.rs/lucide-yew/latest/lucide_yew/)
- [View source](https://github.com/RustForWeb/lucide/tree/main/packages/yew)
## Usage
@ -30,13 +34,15 @@ fn App() -> Html {
## Props
| Name | Type | Default |
| ----------------------- | -------- | ---------------- |
| `size` | `usize` | `24` |
| `color` | `String` | `"currentColor"` |
| `fill` | `String` | `"none"` |
| `stroke_width` | `usize` | `2` |
| `absolute_stroke_width` | `bool` | `false` |
| Name | Type | Default |
| ----------------------- | ------------------- | ---------------- |
| `size` | `usize` | `24` |
| `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": {