@gve/cards
v0.7.4
Published
Create Adaptive Cards, components, and rich messages for bot platforms and more
Downloads
9
Readme
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),
]
},
]
];
}
}