React Shared Components

Interactive testing environment for react-shared components

Theme Playground

Current: Default

SiteCalloutButton

Featured product callout button with image, pricing, reviews, and call-to-action

Interactive Playground

Customize the component properties and see the changes in real-time

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Layout Variants

Different layout styles for the callout button component

Default

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Bleed Horizontal

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Bleed Vertical

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Padding Vertical

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Brim

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Ode

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Nova

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Crest

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Rung

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

Glint

block image

Premium Course Bundle

$79.99$99.99
20%OFF
4.6
5 items left

Transform your skills with our comprehensive course bundle

API Reference

Props

title

string - Product title (default: "Button")

button_text

string - Call-to-action button text (default: "Button Text")

tagline

string - Subheading/description text

image

string - Product image URL (optional)

price

object - Price information with amount, sale_amount, and sale_amount_available properties

currency

string - Currency code (e.g., "USD")

reviews

Array<{ rating: number }> - Product reviews (optional)

productType

string - Product type (e.g., "course")

showDiscount

boolean - Show discount badge (default: false)

quantity

number - Available quantity (optional)

layout

"default" | "bleed-horizontal" | "bleed-vertical" | "padding-vertical" | "brim" | "ode" | "nova" | "crest" | "rung" | "glint" - Layout variant

onButtonClick

(data?: { preSelectValue: boolean }) => void - Button click handler (optional)

className

string - Additional CSS classes (optional)

Usage Notes

Featured Callout

This component is designed for prominent product callouts with larger images and more detailed information compared to the standard SiteButton. It's ideal for hero sections or featured product placements.

Layout Variants

The component supports 10 different layout variants, each optimized for different theme styles and content arrangements. Layouts include horizontal and vertical bleed options for full-width designs.

Dual CTA Buttons

The component includes two call-to-action buttons - one hidden and one visible. The visible button can pass a preSelectValue flag to the click handler for different behaviors.

Image Loading

Like SiteButton, this component includes a loading spinner that appears while the product image is loading, providing better user experience.