@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
33 lines (32 loc) • 1.14 kB
TypeScript
import type { BorderType, ShadowType, ShapeType, SizeType, Spacing } from "..";
import type { Dimension } from "../alignment";
import type { Background } from "../background";
import type { ColorGradientScheme } from "../colors";
import type { Component } from "../component";
import type { BaseComponent } from "../base";
import type { Overrides } from "../overrides";
type BadgeStyle = "overlay" | "nested" | "edge_to_edge";
type BadgeAlignment = "top_leading" | "top" | "top_trailing" | "bottom_leading" | "bottom" | "bottom_trailing";
export type Badge = {
style: BadgeStyle;
alignment: BadgeAlignment;
stack: StackProps;
};
export interface StackProps extends BaseComponent {
type: "stack";
visible?: boolean | null;
components: Component[];
size: SizeType;
dimension: Dimension;
spacing: number;
margin: Spacing;
padding: Spacing;
background_color: ColorGradientScheme | null;
background: Background | null;
border: BorderType | null;
shape: ShapeType | null;
shadow: ShadowType | null;
badge?: Badge | null;
overrides?: Overrides<StackProps>;
}
export {};