DaffittTech.Blazor.Components 2.0.1

dotnet add package DaffittTech.Blazor.Components --version 2.0.1
NuGet\Install-Package DaffittTech.Blazor.Components -Version 2.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DaffittTech.Blazor.Components" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DaffittTech.Blazor.Components --version 2.0.1
#r "nuget: DaffittTech.Blazor.Components, 2.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DaffittTech.Blazor.Components as a Cake Addin
#addin nuget:?package=DaffittTech.Blazor.Components&version=2.0.1

// Install DaffittTech.Blazor.Components as a Cake Tool
#tool nuget:?package=DaffittTech.Blazor.Components&version=2.0.1

DaffittTech.Blazor.Components

Introduction

This project is a collection of Blazor Components that may be used across multiple Blazor applications. It may be possible to integrate these components into non-Blazor applications but at this time this has not been determined or verified.

Getting Started

This collection of Blazor-based components will be packaged and hosted as a NuGet package on the popular NuGet.org website. To take advantage of these components follow the steps below.

Installation process

There are a few ways to add these components to your own Blazor application. The simplest way is to use the Package Manager in Visual Studio. You can also go to https://www.nuget.org/packages/DaffittTech.Blazor.Components and follow the directions for your favorite method of installing NuGet packages.

Once you have added this NuGet package to your application project there are a few more things you need to do to get things going.

  1. This package uses another NuGet Package https://www.nuget.org/packages/Blazored.LocalStorage that you will likely need to install to allow local storage to work.

  2. You’ll need to add these lines to the _Imports.razor file where you’ll be using these components.

@using DaffittTech.Blazor.Components;
@using DaffittTech.Blazor.Components.Models;
@using DaffittTech.Blazor.Components.Services;

If you separate your .razor page from its .cs page, you may also need to add one, or a combination of these lines to the using statements in the .cs page (without the "@" symbol).

  1. If you are using the Accordion component you will need to add a dependancy injection (DI) reference for the IAccordionService to the Programs.cs file for dependency injection to work. You will also need to add the following using statements to the same file.
using Blazored.LocalStorage;
using DaffittTech.Blazor.Components.Services;
...
builder.Services.AddBlazoredLocalStorage(); // For the Device Storage features
builder.Services.AddScoped<IAccordionService, AccordionService>(); // DI for the Accordion service
  1. To use the component just add it as an HTML element to the razor page like so…
<AccordionComponent Title="Accordion Title" AccordionPageUrl="index">
    <div>
        <h4>Accordion Content</h4>
        <p>
            This is some fake content for the accordion component.
            Add your own stuff as you please.
        </p>
    </div>
</AccordionComponent>

Software dependencies

As stated above, these are Blazor components that are intended to work in other Blazor applications. Additionally, at this point, there are a couple of other packages on which this NuGet depends. Of course, this will expand as we incorporate additional Blazor components.

  • These components are built on the .Net 7.0 framework
  • Blazored.LocalStorage (>= 4.3.0)
  • Microsoft.ASPNetCore.Components.Web (>= 7.0.0)

Latest releases

The current release version is 2.0.1 This version is functionally the same as version 2.0.0 but includes this revised of the README.md file.

API references

At this time there are no API references of which to speak.

Contribute

For the time being, this collection of components is maintained in a private repository and may not be accessed or contributed to.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.0.1 209 4/2/2023
2.0.0 197 4/1/2023

This is an initial release mostly for getting the NuGet package up and running. This version (1.5.0.0) contains some clean-up and License tweaks from the last version.