Getting started - JavaScript
As we described in Getting Started page, an Adaptive Card is a JSON-serialized card object model. This is a JavaScript SDK for generating client-side HTML in the browser.
Install
Node
npm install adaptivecards
CDN
<script src="https://unpkg.com/adaptivecards/dist/adaptivecards.js"></script>
Usage
Import the module
// import the module
import * as AdaptiveCards from "adaptivecards";
// or require it
var AdaptiveCards = require("adaptivecards");
// or use the global variable if loaded from CDN
AdaptiveCards.renderCard(...);
Next steps
See Render a card for the next steps!
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for