InfiniLore.Lucide.Generators.Raw
0.1.477
Prefix Reserved
See the version list below for details.
dotnet add package InfiniLore.Lucide.Generators.Raw --version 0.1.477
NuGet\Install-Package InfiniLore.Lucide.Generators.Raw -Version 0.1.477
<PackageReference Include="InfiniLore.Lucide.Generators.Raw" Version="0.1.477" />
paket add InfiniLore.Lucide.Generators.Raw --version 0.1.477
#r "nuget: InfiniLore.Lucide.Generators.Raw, 0.1.477"
// Install InfiniLore.Lucide.Generators.Raw as a Cake Addin #addin nuget:?package=InfiniLore.Lucide.Generators.Raw&version=0.1.477 // Install InfiniLore.Lucide.Generators.Raw as a Cake Tool #tool nuget:?package=InfiniLore.Lucide.Generators.Raw&version=0.1.477
InfiniLore.Lucide
InfiniLore.Lucide is a package that allows you to seamlessly integrate Lucide Icons into your Blazor applications. This library provides an easy-to-use component and tools to render SVG icons dynamically with customizable properties.
Features
- Reusable Components: Incorporate Lucide's rich collection of SVG icons using Razor components.
- Icon Customization: Adjust properties like
fill
,stroke
,width
,height
, and more. - Performance-Oriented Rendering: Icons are served as SVG with minimal overhead.
- Fully Typed API: Seamless integration with C# for type-safe development.
- Support for .NET 9.0: Built with the latest .NET technology for modern application development.
Getting Started
To get started with InfiniLore.Lucide, follow the steps below:
1. Install the Package
Make sure you have .NET 9.0 installed. Then, install InfiniLore.Lucide into your Blazor project:
dotnet add package InfiniLore.Lucide
2. Usage
Add the Lucide Component
To include an icon in your Blazor application, use the LucideSvg
component:
<LucideSvg IconName="signature"/>
<LucideSvg IconName="arrow-right"
Width="48"
Height="48"
Fill="none"
Stroke="black"
StrokeWidth="2"
StrokeLineCap="round"
StrokeLineJoin="round" />
Parameters
Below are the parameters you can configure for the LucideSvg
component:
Parameter | Type | Default | Description |
---|---|---|---|
IconName |
string | Required | Name of the icon (case sensitive). |
Width |
int | 24 |
Width of the icon. |
Height |
int | 24 |
Height of the icon. |
Fill |
string | "none" |
Fill color of the icon. |
Stroke |
string | "currentColor" |
Stroke color of the icon. |
StrokeWidth |
int | 2 |
Stroke width of the icon. |
StrokeLineCap |
string | "round" |
Shape of the ends of lines (butt , round ). |
StrokeLineJoin |
string | "round" |
Style of corners (miter , round , bevel ). |
3. Custom SVG Icons
The library can also accept raw SVG content for advanced use cases. You can programmatically get an SVG's content using the LucideService.GetIconContent(string iconName)
method.
Integration Details
This library:
- Internally utilizes the
lucide-static
package for icon definitions. - Includes
ILucideIconData
for icon data encapsulation, providing structured interfaces for SVG manipulation. - Supports additional data manipulation for expanding sources via the
AdditionalSourcesCollection
class.
Dependencies
- Lucide-Static for icon SVG content.
- CodeOfChaos.GeneratorTools for generator tooling in source generation scenarios.
Supported Platforms
- .NET 9.0 Blazor Server and WebAssembly.
Development Notes
This project follows a modular structure for maintainability:
InfiniLore.Lucide
: Blazor components and view logic.InfiniLore.Lucide.Data
: Handles icon definitions and metadata.InfiniLore.Lucide.Generators
: Implements tooling via Roslyn to read data from lucide.static package.
License
InfiniLore.Lucide is built on Lucide, which is distributed under the ICS license:
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
For full license details, see Lucide License.
Contributions
Contributions are welcome! To get started:
- Fork the repository.
- Create a new branch for your feature or fix.
- Submit a pull request with a detailed description of your changes.
For further development or issues, feel free to raise a GitHub issue or suggest improvements.
Enjoy using InfiniLore.Lucide in your Blazor projects! 🚀
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. |
-
net9.0
- InfiniLore.Lucide.Data (>= 0.1.477)
- Microsoft.AspNetCore.Components (>= 9.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.13.477-preview.3 | 153 | 3/5/2025 |
0.13.477-preview.2 | 153 | 3/5/2025 |
0.13.477-preview.1 | 150 | 3/5/2025 |
0.12.477 | 58 | 3/1/2025 |
0.11.477 | 44 | 3/1/2025 |
0.7.477 | 60 | 3/1/2025 |
0.6.477 | 57 | 3/1/2025 |
0.5.477 | 58 | 3/1/2025 |
0.4.477 | 61 | 3/1/2025 |
0.3.477 | 59 | 3/1/2025 |
0.1.477 | 57 | 3/1/2025 |