GranDen.Blazor.Bootstrap.SwitchButton 1.0.1

dotnet add package GranDen.Blazor.Bootstrap.SwitchButton --version 1.0.1                
NuGet\Install-Package GranDen.Blazor.Bootstrap.SwitchButton -Version 1.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="GranDen.Blazor.Bootstrap.SwitchButton" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GranDen.Blazor.Bootstrap.SwitchButton --version 1.0.1                
#r "nuget: GranDen.Blazor.Bootstrap.SwitchButton, 1.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 GranDen.Blazor.Bootstrap.SwitchButton as a Cake Addin
#addin nuget:?package=GranDen.Blazor.Bootstrap.SwitchButton&version=1.0.1

// Install GranDen.Blazor.Bootstrap.SwitchButton as a Cake Tool
#tool nuget:?package=GranDen.Blazor.Bootstrap.SwitchButton&version=1.0.1                

BlazorSwitchButton

Package the bootstrap-switch-button as a Blazor UI Component.

Support Blazor Server, Blazor WASM(WebAssembly) and ASP.NET Core Blazor Hybrid.

Installation notes

After install nuget, you must add CSS reference in hosting html file in you project.

_Host.cshtml in Blazor Server project:

@page "/"
...
@{
    var rclCompName = typeof(GranDen.Blazor.Bootstrap.SwitchButton.Switch).Assembly.GetName().Name;
}
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        ... 
        <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
        <link rel="stylesheet" href="css/site.css" />

        @* Be sure to add component CSS reference *@
        <link rel="stylesheet" href="_content/@rclCompName/css/bootstrap-switch-button.min.css" />
    </head>
    ...
</html>

index.html in Blazor WASM and Blazor Hybrid project:

<head>
    <meta charset="utf-8" />
    ...
    <base href="/" />
    <link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
    <link href="css/app.css" rel="stylesheet" />

    <! -- Be sure to add component bundled css -- >
    <link rel="stylesheet" href="_content/GranDen.Blazor.Bootstrap.SwitchButton/css/bootstrap-switch-button.min.css" />

    <link href="BlazorWasmAppDemo.Client.styles.css" rel="stylesheet" />
</head>
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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
1.0.1 656 8/23/2022
1.0.0 401 8/21/2022
0.1.0 444 2/25/2021
0.0.5 365 2/20/2021
0.0.4-beta 214 2/18/2021
0.0.3-beta 236 1/15/2021
0.0.1-beta 276 1/3/2021

1.0.1 :
           
1. Add README.md file in nuget package.
           
2. Add Blazor Hybrid on WPF example.