Blazor.DaisyUI
0.0.5-alpha
See the version list below for details.
dotnet add package Blazor.DaisyUI --version 0.0.5-alpha
NuGet\Install-Package Blazor.DaisyUI -Version 0.0.5-alpha
<PackageReference Include="Blazor.DaisyUI" Version="0.0.5-alpha" />
paket add Blazor.DaisyUI --version 0.0.5-alpha
#r "nuget: Blazor.DaisyUI, 0.0.5-alpha"
// Install Blazor.DaisyUI as a Cake Addin
#addin nuget:?package=Blazor.DaisyUI&version=0.0.5-alpha&prerelease
// Install Blazor.DaisyUI as a Cake Tool
#tool nuget:?package=Blazor.DaisyUI&version=0.0.5-alpha&prerelease
<a name="readme-top"></a>
<br /> <div align="center"> <a href="https://github.com/Denny09310/Blazor.DaisyUI"> <img src="blazor-logo.png" alt="Blazor Logo" width="80" height="80"> <img src="daisy-ui-logo.png" alt="DaisyUI Logo" width="80" height="80"> </a>
<h3 align="center">Blazor.DaysUI</h3>
<p align="center"> This library, initially designed as a Razor Class Library for Blazor components, draws inspiration from the library and integrates TailwindCSS. A unique approach was taken by converting the project into a "dotnet tool" to address challenges arising during the compilation of the NuGet package. Unlike conventional setups, where only ".dll" files are generated, this library ensures the presence of ".razor" files within the source code. This adjustment facilitates TailwindCSS in compiling the essential CSS classes embedded in the library. The methodology used is like the technique used by shadcn for TypeScript, allowing for seamless integration and efficient template scaffolding directly within the project. <br /> <a href="https://github.com/Denny09310/Blazor.DaisyUI"><strong>Explore the docs �</strong></a> <br /> <br /> <a href="https://github.com/Denny09310/Blazor.DaisyUI">View Demo</a> � <a href="https://github.com/Denny09310/Blazor.DaisyUI/issues">Report Bug</a> � <a href="https://github.com/Denny09310/Blazor.DaisyUI/issues">Request Feature</a> </p> </div>
<details> <summary>Table of Contents</summary> <ol> <li> <a href="#about-the-project">About The Project</a> <ul> <li><a href="#built-with">Built With</a></li> </ul> </li> <li> <a href="#getting-started">Getting Started</a> <ul> <li><a href="#prerequisites">Prerequisites</a></li> <li><a href="#installation">Installation</a></li> </ul> </li> <li><a href="#usage">Usage</a></li> <li><a href="#roadmap">Roadmap</a></li> <li><a href="#contributing">Contributing</a></li> <li><a href="#license">License</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#acknowledgments">Acknowledgments</a></li> </ol> </details>
About The Project
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Built With
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Getting Started
To integrate Blazor.DaisyUI into your Blazor project, follow these simple steps:
NuGet Package Manager Console:
- NuGet Package Manager Console:
Install-Package Blazor.DaisyUI
- .NET CLI:
If you prefer the command line, use the .NET CLI:
dotnet add package Blazor.DaisyUI
Import the namespace inside your <code>_Imports.razor</code>
This will automatically download and install the latest version of Blazor.DaisyUI into your project, along with any necessary dependencies.
@using Blazor.DaisyUI
and inject the services inside the Dependency Injection Container in <code>Project.cs</code>
using Blazor.DaisyUI;
builder.Services.AddDaisyUi();
Lastly, install the tool to scaffold the templates inside your project
dotnet tool install Blazor.DaisyUI.Tool --global
Usage
To scaffold the templates inside your project use the next command, inside the folder with the blazor project
daisyui generate alert
This will generate the <code>Alert.razor</code> inside your <code>Components/UI</code> folder with the namespace, all the using needed and the required dependencies
For more examples, please refer to the Documentation
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Roadmap
- Templating all the simple components
- Templating all the complex components
- Adding most used custom components
See the open issues for a full list of proposed features (and known issues).
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
<p align="right">(<a href="#readme-top">back to top</a>)</p>
License
Distributed under the MIT License. See LICENSE.txt
for more information.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Contact
Koja Dennis - @Denny093 - k.denny2000@gmail.com
Project Link: https://github.com/Denny09310/Blazor.DaisyUI
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Acknowledgments
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- BlazorComponentUtilities (>= 1.8.0)
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.0.7-beta | 61 | 3/6/2024 |
0.0.6-beta | 124 | 12/27/2023 |
0.0.5-alpha | 55 | 12/26/2023 |
0.0.4-alpha | 65 | 12/24/2023 |
This is a very early stage version, I want to add a lot of things