@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
54 lines (52 loc) • 865 B
JavaScript
import { Element } from '../base';
class Icon extends Element {
type;
/**
* name of the icon.
*/
name;
/**
* size of the icon.
*/
size;
/**
* style of the icon.
*/
style;
/**
* color of the icon.
*/
color;
/**
* select action
*/
selectAction;
constructor(name, options = {}) {
super();
this.type = "Icon";
this.name = name;
Object.assign(this, options);
}
static from(options) {
return new Icon(options.name, options);
}
withSize(value) {
this.size = value;
return this;
}
withStyle(value) {
this.style = value;
return this;
}
withColor(value) {
this.color = value;
return this;
}
withSelectAction(value) {
this.selectAction = value;
return this;
}
}
export { Icon };
//# sourceMappingURL=icon.mjs.map
//# sourceMappingURL=icon.mjs.map