All Projects → mikoskinen → Blazor.AdaptiveCards

mikoskinen / Blazor.AdaptiveCards

Licence: MIT license
Adaptive Cards for Blazor

Programming Languages

C#
18002 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Blazor.AdaptiveCards

BlazorAuthenticationSample
A sample showing some of the ASP.NET Core Blazor authentication features (also some testing...) 🚀
Stars: ✭ 78 (+73.33%)
Mutual labels:  blazor
vditor-blazor
📝 A markdown web editor based on Vditor and Blazor.
Stars: ✭ 51 (+13.33%)
Mutual labels:  blazor
BlazorScheduler
Scheduler built with Blazor
Stars: ✭ 50 (+11.11%)
Mutual labels:  blazor
smart-blazor
Blazor UI Components & Examples
Stars: ✭ 32 (-28.89%)
Mutual labels:  blazor
EmbeddedBlazorContent
Library to load embedded content files (js and css) from Blazor libraries in server-side Blazor mode.
Stars: ✭ 39 (-13.33%)
Mutual labels:  blazor
Blazm.Bluetooth
No description or website provided.
Stars: ✭ 58 (+28.89%)
Mutual labels:  blazor
Flexor
Blazor flexbox components
Stars: ✭ 23 (-48.89%)
Mutual labels:  blazor
BlazorCefApp
Build windows desktop GUI app via CEF / WinForms / Blazor server-site
Stars: ✭ 28 (-37.78%)
Mutual labels:  blazor
BlazorLazyLoad
BlazorLazyLoad is a concept of assembly lazy load in Blazor WASM application.
Stars: ✭ 16 (-64.44%)
Mutual labels:  blazor
Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
Stars: ✭ 46 (+2.22%)
Mutual labels:  blazor
Blazor-Dashboard
Admin Dashboard Template Theme for Blazor
Stars: ✭ 94 (+108.89%)
Mutual labels:  blazor
Blazorade-Teams
A Blazor component library that is designed to be used when building applications for Microsoft Teams.
Stars: ✭ 29 (-35.56%)
Mutual labels:  blazor
TailBlazor
Blazor & Tailwind JIT on Azure Static Web Apps
Stars: ✭ 24 (-46.67%)
Mutual labels:  blazor
BlazorHealthApp
Example application ported from Angular 2 to Blazor
Stars: ✭ 37 (-17.78%)
Mutual labels:  blazor
BlazorApplicationInsights
Application Insights for Blazor web applications
Stars: ✭ 101 (+124.44%)
Mutual labels:  blazor
AdaptiveCards-Templates
Samples on different adaptive card designs demonstrating the art of possible with them. Designs provided by the Microsoft design team and first versions targeting Viva Connections Adaptive Card Extensions (ACE) scenarios.
Stars: ✭ 48 (+6.67%)
Mutual labels:  adaptive-cards
serilog-sinks-browserhttp
Serilog sink for client-side Blazor, with matching ASP.NET Core server relay
Stars: ✭ 36 (-20%)
Mutual labels:  blazor
BlazorFullCalendar
A Server-Side-Blazor wrapper for FullCalender.io
Stars: ✭ 24 (-46.67%)
Mutual labels:  blazor
MetaMask.Blazor
Use MetaMask with Blazor WebAssembly
Stars: ✭ 26 (-42.22%)
Mutual labels:  blazor
blazor-analytics
Blazor extensions for Analytics: Google Analytics, GTAG, ...
Stars: ✭ 101 (+124.44%)
Mutual labels:  blazor

Introduction

Adaptive Cards for Blazor is a community project that provides Adaptive Cards support for your Blazor applications.

Adaptive Cards for Blazor Logo

Adaptive Cards are a way to exchange content in a common and consistent way. Adaptive Cards can be integrated into different applications like Microsoft Teams and Outlook. Adaptive Cards can also be integrated into custom applications built with .NET, iOS and JavaScript. And now Blazor, the new Web App platform from Microsoft is supported.

NuGet

Feature Highlights

Adaptive Cards for Blazor provides components for displaying Adaptive Cards inside your Blazor Application. Here's few of the most notable features of this library:

  • JSON-support: Create and display Adaptive Cards from the JSON-schema.
  • Templating: Combine models (objects) and the schema.
  • Card Collections: Display a list of cards based on model and use template selector to customize the output.
  • Action support: Handle Submit and OpenUrl actions using C#.
  • Native .NET-based solution: Blazor Adaptive Cards is based on the official .NET SDK for Adaptive Cards.

Project home

Adaptive Cards for Blazor's home site is located at https://adaptivecardsblazor.com/.

Project's source code is available from GitHub. GitHub can be used to report any suggestions or issues.

Requirements

Adaptive Cards for Blazor targets .NET Core 3.1. Please also note that the library has been tested with the server side version of Blazor.

Roadmap

  • October 2019: 1.0.0
  • October 2019: 1.1.0: Adds support for ToggleVisibility.
  • November 2019: 2.0.0: Adds support for .NET Core 3.1.
  • May 2020: 3.0.0-beta: Adds support for preview version of .NET 5 and adds a fully tested support for Blazor WebAssembly.
  • November 2020: 3.0.0: Adds support for RTM version of .NET 5 and fully supports both the WebAssembly and Server versions of Blazor.

Getting started

Getting Started guide is available through the project's home site.

Quick start

Add NuGet

Install-Package AdaptiveCardsBlazor

Configure Startup.cs

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddRazorPages();
            services.AddServerSideBlazor();
            
            ...

            services.AddBlazorAdaptiveCards();
        }

Configure _Imports.razor

...
@using AdaptiveCards.Blazor

Add JS interop into _Host.cshtml

    <script src="_content/AdaptiveCardsBlazor/adaptiveCardsJsInterop.js"></script>

Create the schema in Index-component

@code {
    string schema = @"{
      ""$schema"": ""http://adaptivecards.io/schemas/adaptive-card.json"",
      ""type"": ""AdaptiveCard"",
      ""version"": ""1.2"",
      ""body"": [
        {
          ""type"": ""TextBlock"",
          ""text"": ""Adaptive Cards for Blazor simple example""
        }
      ]
    }";
}

Render the card by adding component into page

        <AdaptiveCard Schema="@schema"></AdaptiveCard>

Full source code of index.razor

@page "/"

<AdaptiveCard Schema="@schema"></AdaptiveCard>

@code{
    string schema = @"{
      ""$schema"": ""http://adaptivecards.io/schemas/adaptive-card.json"",
      ""type"": ""AdaptiveCard"",
      ""version"": ""1.2"",
      ""body"": [
        {
          ""type"": ""TextBlock"",
          ""text"": ""Adaptive Cards for Blazor simple example""
        }
      ]
    }";
}

Authors

Adaptive Cards for Blazor is created by Mikael Koskinen.

Contributions are welcome!

License

Adaptive Cards for Blazor is MIT licensed. The library uses the following other libraries:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].