Ready

Component properties

The four CustomizerConfig types: image_upload, custom_text, color_swatch, option_select.

Buyer-editable fields are declared on CustomizerConfig.components in @quarksb/batch-core. There are four component types today.

image_upload

  • id, label, areaId (design area), optional slotId
  • required, placeholderUrl, maxEdgePx
  • allowCrop, allowRotate
  • optional addon (amountCents, currency, label)

custom_text

  • id, label, areaId, optional slotId
  • defaultText, maxLength, fonts whitelist, defaultFont
  • colors fill whitelist, defaultColor
  • allowStroke, allowCurve
  • addon, optional extraLineAddon

color_swatch

  • Maps to the product SKU color axis — not a free-form palette
  • colors: product SKU colors (id, label, hex, …)
  • defaultColorId

option_select

  • Single-select menu: options[] with id, label, optional addon, optional flag written into BuyerSession.optionFlags
  • defaultOptionId, required

Explore a live Tank Top config in the Admin shell.

← All guides