Skip to main content

Overview

This page documents the shared types used across Whop embedded components.

EmbeddableElement

CSSValue

A CSS property value.

CSSProps

A record of CSS properties and their values.

Classes

A record of CSS class names to their style definitions.
See the styling reference for the full list of stable class names applied to embedded components.

Variables

CSS custom properties (variables) that can be used to customize element styles. Keys must start with -- prefix.

AccentColor

Available accent colors for theming elements. These colors are used for primary UI elements like buttons, links, and highlights.

Theme

Theme configuration for customizing the visual appearance of elements.

Appearance

Configuration for customizing the visual appearance of Whop elements. Use this to match the embedded components to your application’s design.

WhopElementsEnvironment

The environment to use for API calls.
  • "production" - Use the live production API
  • "sandbox" - Use the sandbox API for testing

WhopElementsOptions

Configuration options for initializing WhopElements.