![]() |
VOOZH | about |
dotnet add package Sparc.UI --version 6.3.0
NuGet\Install-Package Sparc.UI -Version 6.3.0
<PackageReference Include="Sparc.UI" Version="6.3.0" />
<PackageVersion Include="Sparc.UI" Version="6.3.0" />Directory.Packages.props
<PackageReference Include="Sparc.UI" />Project file
paket add Sparc.UI --version 6.3.0
#r "nuget: Sparc.UI, 6.3.0"
#:package Sparc.UI@6.3.0
#addin nuget:?package=Sparc.UI&version=6.3.0Install as a Cake Addin
#tool nuget:?package=Sparc.UI&version=6.3.0Install as a Cake Tool
The Sparc.UI library is the main framework library for the UI Project in your Sparc solution.
A UI Project is where you put all shared Blazor Pages and Components for your Web and MAUI projects to use.
If your project is multi-platform (i.e. web + desktop and/or mobile), this project should exist so that you are only writing the UI codebase once and sharing it across every platform.
All UI responsiveness is handled through CSS media queries, as a mobile web application would handle it.
In short: Write your UI as a mobile-responsive web application, and you get Desktop & Mobile apps "for free".
One of the best aspects of Sparc.Kernel is its ability to auto-generate a client method for every Feature you write, with zero configuration.
Every time your solution is built, Sparc.Kernel automatically creates the following, for every feature:
/api/DoSomething)public async Task<GetOrderResponse> DoSomethingAsync(GetOrderRequest request);
To set this up, you need to point your UI Project to the swagger.json file in your Features Project, and configure it as an OpenAPI reference:
swagger.json file generated inside your Features Project.If you ever need to manually regenerate this class, simply open the Connected Service → Regenerate.
To use this Api class in your Blazor components:
_Imports.razor global file):
@inject PointOfSaleApi Api
var orders = await Api.GetAllOrdersAsync();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Sparc.UI:
| Package | Downloads |
|---|---|
|
Sparc.Platforms.Maui
MAUI Sparc package |
|
|
Sparc.Platforms.Web
Web platform Sparc package |
This package is not used by any popular GitHub repositories.