From d8eb6424e7079aac9402e6db707088e14b738a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Hansen?= Date: Fri, 26 Jan 2024 03:05:43 +0100 Subject: [PATCH] feature: configure project with nuget properties --- .../OneOf.Extensions.Blazor.csproj | 44 ++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/src/OneOf.Extensions.Blazor/OneOf.Extensions.Blazor.csproj b/src/OneOf.Extensions.Blazor/OneOf.Extensions.Blazor.csproj index 05a9056..7a5f0ac 100644 --- a/src/OneOf.Extensions.Blazor/OneOf.Extensions.Blazor.csproj +++ b/src/OneOf.Extensions.Blazor/OneOf.Extensions.Blazor.csproj @@ -2,18 +2,52 @@ net8.0 - enable enable - + enable + true + Library - - - + OneOf.Extensions.Blazor + fenris.io + +A collection of Blazor components for dealing with OneOf types in your Blazor project. + +Instead of writing a switch statement to handle the different cases of a OneOf type, you can use these components to render the correct component for the case. + +Example: + +<OneOfSwitch2 Value="myOneOfWithTwoTypeParameters"> + <T0Template> + <p>I am of type T0 and my value is @context!.</p> + </T0Template> + <T1Template> + <p>I am of type T1 and my value is @context!.</p> + </T1Template> +</OneOfSwitch2> + + https://github.com/fenrisdotio/OneOf.Extensions.Blazor + oneof extensions blazor components switch + README.md + LICENSE.txt + https://github.com/fenrisdotio/OneOf.Extensions.Blazor/blob/main/LICENSE.txt + + true + true + true + snupkg + true + + + + + + +