@cisco/cards

0.8.5 • Public • Published

Cards

Create Adaptive Cards, components, and rich messages for bot platforms and more - without having to remember the boilerplate.

Installation

Install with npm.

npm i @gve/cards

Usage

const { Card, Header, Property } = require("@gve/cards");

class RookieCard extends Card {
  constructor(playerName, team, position) {
    super();
    this.body = [
      type: "Container",
      items: [
        new Header(`${playerName}'s Rookie Card`),
        {
          type: "FactSet",
          facts: [
            new Property("Player", playerName),
            new Property("Team", team),
            new Property("Position", position),
          ]
        },
      ]
    ];
  }
}

License

Apache 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @cisco/cards

Weekly Downloads

2

Version

0.8.5

License

Apache-2.0

Unpacked Size

14.3 kB

Total Files

6

Last publish

Collaborators

  • cisco-service
  • detiber
  • gveappsupport
  • mattnorris