@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
29 lines (28 loc) • 853 B
TypeScript
import type { BorderType, CircleShape, RectangleShape, ShadowType, SizeType, Spacing } from "..";
import type { BaseComponent } from "../base";
import type { ColorScheme } from "../colors";
import type { Overrides } from "../overrides";
export interface IconBackground {
color: ColorScheme | null;
shape: RectangleShape | CircleShape;
border?: BorderType | null;
shadow?: ShadowType | null;
}
export interface IconProps extends BaseComponent {
type: "icon";
visible?: boolean | null;
icon_name: string;
base_url: string;
formats: {
svg?: string;
png?: string;
webp?: string;
heic?: string;
};
size: SizeType;
padding?: Spacing | null;
margin?: Spacing | null;
color: ColorScheme;
icon_background?: IconBackground | null;
overrides?: Overrides<IconProps>;
}