@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
29 lines (26 loc) • 967 B
TypeScript
import { TargetWidth } from '../common/target-width.js';
/**
* A layout that stacks elements on top of each other. Layout.Stack is the default layout used by AdaptiveCard and all containers.
*/
interface IStackLayout {
type: 'Layout.Stack';
/**
* Controls for which card width the layout should be used.
*/
targetWidth?: TargetWidth;
}
type StackLayoutOptions = Omit<IStackLayout, 'type'>;
/**
* A layout that stacks elements on top of each other. Layout.Stack is the default layout used by AdaptiveCard and all containers.
*/
declare class StackLayout implements IStackLayout {
type: 'Layout.Stack';
/**
* Controls for which card width the layout should be used.
*/
targetWidth?: TargetWidth;
constructor(options?: StackLayoutOptions);
static from(options: StackLayoutOptions): StackLayout;
withTargetWidth(value: TargetWidth): this;
}
export { type IStackLayout, StackLayout, type StackLayoutOptions };