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

44 lines (42 loc) 890 B
import { Element } from '../base'; class ProgressRing extends Element { type; /** * The label of the progress ring. */ label; /** * Controls the relative position of the label to the progress ring. * @default `above` */ labelPosition; /** * The size of the progress ring. * @default `medium` */ size; constructor(options = {}) { super(); this.type = "ProgressRing"; Object.assign(this, options); } static from(options) { return new ProgressRing(options); } withLabel(value, position) { this.label = value; this.labelPosition = position; return this; } withLabelPosition(value) { this.labelPosition = value; return this; } withSize(value) { this.size = value; return this; } } export { ProgressRing }; //# sourceMappingURL=progress-ring.mjs.map //# sourceMappingURL=progress-ring.mjs.map