3U

Editable Components

Complete reference for all customizable theme components.

Available Components

ComponentPurpose
TImageMerchant-editable image
TTextEditable inline text
THeadingEditable heading (h1-h6)
TParagraphEditable paragraph
TSpanEditable inline span
TColorCustomizable color value
TSectionNamed section wrapper
TButtonStyled, editable button
TLinkStyled, editable link
TProductCardProduct display card
TProductGridResponsive product grid
TCollectionGridCollection display grid
TCartSummaryShopping cart summary
TCheckoutFormCheckout form component

Usage Example

Every editable component requires a unique name prop:

Editable Components
TSX
import {
  TImage, THeading, TParagraph,
  TColor, TSection, TProductGrid, useProducts
} from "threeu-sdk/theme";

function CollectionPage() {
  const { data: products = [] } = useProducts();
  return (
    <>
      <TSection name="collection.hero">
        <TImage name="collection.hero.banner"
          src="/collection-banner.jpg" alt="Banner" />
        <THeading name="collection.hero.title">
          New Arrivals
        </THeading>
      </TSection>
      <TSection name="collection.products">
        <TProductGrid products={products} columns={3} />
      </TSection>
    </>
  );
}