open-in-idx
Version:
SDK for opening workspaces in Project IDX
15 lines • 581 B
TypeScript
export type ButtonLabel = 'open' | 'try' | 'export' | 'continue';
export type ButtonColor = 'dark' | 'light' | 'purple';
export type ButtonSize = 20 | 32;
export type ButtonImageFormat = 'svg' | 'png';
export interface ButtonImageConfig {
label?: ButtonLabel;
color?: ButtonColor;
size?: ButtonSize;
imageFormat?: ButtonImageFormat;
}
/**
* Get the CDN URL for a given "Open in IDX" button configuration.
*/
export declare function makeButtonImageUrl({ label, color, size, imageFormat }?: ButtonImageConfig): string;
//# sourceMappingURL=button-image-url.d.ts.map