Feliz.Lucide
0.1.0
See the version list below for details.
dotnet add package Feliz.Lucide --version 0.1.0
NuGet\Install-Package Feliz.Lucide -Version 0.1.0
<PackageReference Include="Feliz.Lucide" Version="0.1.0" />
<PackageVersion Include="Feliz.Lucide" Version="0.1.0" />
<PackageReference Include="Feliz.Lucide" />
paket add Feliz.Lucide --version 0.1.0
#r "nuget: Feliz.Lucide, 0.1.0"
#:package Feliz.Lucide@0.1.0
#addin nuget:?package=Feliz.Lucide&version=0.1.0
#tool nuget:?package=Feliz.Lucide&version=0.1.0
Feliz.Lucide
Lucide icon bindings in feliz style!
Includes compatibility with @lucide/lab
.
Usage
With lucide-react
run
npm add lucide-react
open Feliz.Lucide
[<ReactComponent>]
let TestView () =
Html.div [
Icon.AArrowDown [] // Requires a prop list parameter; pass empty list prn
Icon.Ambulance [ icon.size 48 ] // Props are prefixed `icon`
]
let root = ReactDOM.createRoot (document.getElementById "elmish-app")
root.render (TestView ())
With @lucide/lab
run
npm add @lucide/lab
open Feliz.Lucide
open Feliz.Lucide.Lab
[<ReactComponent>]
let TestView () =
Html.div [
Icon.icon [ icon.iconNode "burger" ]
]
let root = ReactDOM.createRoot (document.getElementById "elmish-app")
root.render (TestView ())
You must include both the Feliz.Lucide and Feliz.Lucide.Lab modules to use the lab icons. This is due to the
lucide-react
Icon
element and propertyiconNode
being added as overloads to ourIcon
type in Feliz.Lucide.
Future Direction
Once I have time to automate the generation of the icons, I'll include direct bindings to the lab icons rather than passing a string to a property which can cause massive exceptions when the import is unsuccesful.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
- Fable.Core (= 4.3.0)
- Feliz (= 2.9.0)
- FSharp.Core (>= 0.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.