UNPKG

@microsoft/teams.cards

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.cards" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=code" ta

41 lines (39 loc) 681 B
import { Element } from '../base'; class ProgressBar extends Element { type; /** * @default `accent` */ color; /** * percentage */ value; /** * the max value */ max; constructor(options = {}) { super(); this.type = "ProgressBar"; Object.assign(this, options); } static from(options) { return new ProgressBar(options); } withColor(value) { this.color = value; return this; } withValue(value) { this.value = value; return this; } withMax(value) { this.max = value; return this; } } export { ProgressBar }; //# sourceMappingURL=progress-bar.mjs.map //# sourceMappingURL=progress-bar.mjs.map