@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
64 lines (63 loc) • 2.01 kB
JavaScript
export const BACKGROUND_PAYWALL = (background) => {
return {
id: "background_paywall",
default_locale: "en_US",
components_localizations: {
en_US: {},
},
components_config: {
base: {
background,
stack: {
background: null,
background_color: null,
badge: null,
border: null,
components: [],
dimension: {
alignment: "center",
distribution: "start",
type: "vertical",
},
id: "rocJhuHfiP",
margin: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
name: "Content",
padding: {
bottom: 0,
leading: 0,
top: 0,
trailing: 0,
},
shadow: null,
shape: {
corners: {
bottom_leading: 0,
bottom_trailing: 0,
top_leading: 0,
top_trailing: 0,
},
type: "rectangle",
},
size: {
height: {
type: "fit",
value: null,
},
width: {
type: "fill",
value: null,
},
},
spacing: 16,
type: "stack",
},
sticky_footer: null,
},
},
};
};