@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
21 lines (20 loc) • 754 B
TypeScript
import type { FontSizes, FontWeights, SizeType, Spacing, TextAlignments } from "..";
import type { BaseComponent } from "../base";
import type { ColorGradientScheme } from "../colors";
import type { Overrides } from "../overrides";
export interface TextNodeProps extends BaseComponent {
text_lid: string;
font_name?: string | null;
font_size: number | keyof typeof FontSizes;
font_weight: keyof typeof FontWeights;
font_weight_int?: number;
horizontal_alignment: keyof typeof TextAlignments;
color: ColorGradientScheme;
background_color?: ColorGradientScheme | null;
type: "text";
visible?: boolean | null;
padding: Spacing;
margin: Spacing;
size: SizeType;
overrides?: Overrides<TextNodeProps>;
}