Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

adaptivecards-react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adaptivecards-react

React.js Adaptive Cards Javascript library for HTML Clients

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

React.js Adaptive Cards component

Install and import the module

Node

npm install react adaptivecards-react --save
// Import the module:
import * as AdaptiveCard from "adaptivecards-react";

// OR require it:
var AdaptiveCard = require("adaptivecards-react");
import { AdaptiveCard } from "adaptivecards-react";

Usage

Basic usage:

  var card = {
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "Here is a ninja cat"
        },
        {
            "type": "Image",
            "url": "http://adaptivecards.io/content/cats/1.png"
        }
    ]
  };
<AdaptiveCard
    payload={card}
/>

Non-interactible:

<AdaptiveCardView
    payload={card}
    style={{ pointerEvents: 'none' }}
/>

Keywords

adaptivecards

FAQs

Package last updated on 08 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts