0.7.4 • Published 2 years ago

@gve/cards v0.7.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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

0.6.7

2 years ago

0.7.4

2 years ago

0.6.4

2 years ago

0.6.0

2 years ago

0.5.19

2 years ago

0.5.18

2 years ago

0.5.17

2 years ago