Home
Wiki
Home
Wiki
  1. 2. Components
  • Back to home
  • 1. Themes
  • Vs Code
    • Getting Started
  • Kitchenware
    • Layout
      • New Layout
      • Legacy Layout
    • Components
      • Announcement
      • Banner Carousel
      • Banner With Products Carousel
      • Blog Category List
      • Blog List
      • Brand List
      • Brands Carousel
      • Breadcrumb
      • Call To Action
      • Cart
      • Categories List
      • Change Password
      • Checkout
      • Cookie Manager
      • Filter list
      • Footer
      • Forgot Password
      • Form
      • Hero Carousel
      • Icon Block
      • Invitation
      • Last Visited Products
      • Layout
      • Login
      • Map
      • Nav Bar
      • Offer
      • Product Attachments
      • Product Attributes
      • Product Documentation
      • Product Expected
      • Product Modal
      • Products Block
      • Products Carousel
      • Product Single
      • Profile
      • Quote
      • Register
      • Related Products
      • Search
      • Stores
      • Subscribe Newsletter
      • Text with Image
      • Top Bar
      • Video
    • Reusables
      • Getting Started
    • Assets
      • Getting Started
    • SDK
      • Products
        • _findProductsByCategory
        • _findProductsByIds
        • _findProductsByTitle
        • _findProductsByFilter
        • _findProductsByCriteria
        • _findProductsAndCalculate
        • _findProductsThenCalculate
        • _getProductAttributeSet
        • _setLastVisited
      • Categories
        • _findCategoryTreeById
        • _findCategoriesByIds
        • _findCategoryByAlias
        • _findCategoryTreeByAlias
        • _getCategoryContent
      • Collections
        • _getCollectionContent
        • _findCollectionsByIds
        • _findCollectionsByIdsThenCalculate
      • Brands
        • _getBrandContent
        • _findBrandsByIds
      • Cart
        • _addToCartMulti
        • _addToCart
        • _setCart
        • _clearCart
        • _setCartListener
        • _removeFromCart
        • _calculateCart
      • Checkout
        • _startCheckout
        • _updateCheckout
        • _completeCheckout
      • Shopping Lists
        • _getShoppingLists
        • _updateShoppingList
        • _createShoppingList
        • _deleteShoppingList
        • _getShoppingListByAlias
      • Navigation
        • _getFooterMenu
        • _getHeaderMenu
      • Users
        • _getUserById
      • Utils
        • _calculateCurrency
        • _getCurrencySymbol
        • _getCulture
        • _subscribeToNewsletter
        • _findUnitsByIds
  • Noir
    • 0. Introduction
    • 1. Structure
      • Overview
      • LayoutA.liquid
      • ComponentsList.liquid
      • Metas.liquid
      • CssVariables.liquid
      • Json.liquid
      • GoogleTagManager.liquid
      • StagingButton.liquid
    • 2. Components
      • Overview
      • Announcement
      • BannerCarousel
      • BlogCategoryList
      • BlogList
      • BrandList
      • Breadcrumb
      • Cart
      • CategoriesList
      • ChangePassword
      • Checkout
      • CookieManager
      • FilterList
      • Footer
      • ForgotPassword
      • Form
      • IconBlock
      • Invitation
      • LastVisitedProducts
      • Login
      • Map
      • NavBar
      • ProductAttachments
      • ProductAttributes
      • ProductComparison
      • ProductDocumentation
      • ProductMixList
      • ProductsBlock
      • ProductsCarousel
      • ProductSingle
      • Profile
      • Register
      • RelatedProducts
      • SingleBlog
      • Stores
      • TextWithImage
      • ThankYouPage
      • TopBar
      • Wishlist
    • 3. Reusables
      • Overview
      • Addresses
      • BillingRetail
      • AddressForm
      • AnnouncementModal
      • BackToTop
      • Company
      • General
      • Login
      • LoginModal
      • Orders
      • Payment
      • ProductAttachments
      • ProductAttributes
      • ProductComparisonButton
      • ProductComparisonFloatingButton
      • ProductGridItem
      • ProductListItem
      • ShoppingListsButton
      • ProductModal
      • ProfileInfo
      • PromptModal
      • Register
      • Shipping
      • ShoppingLists
      • ShoppingListsNavbar
      • Toast
      • Users
      • VariantContent
      • WishlistButton
      • Services
    • 4. Assets
      • Fonts
      • Images
      • Templates
      • Javascript
        • Overview
        • theme.js
      • Css / Scss
        • Overview
        • ThemeClasses
    • 5. SDK
      • Overview
      • LiquidGlobals
      • ServicesSDK
  1. 2. Components

TextWithImage

Purpose#

The TextWithImage component renders one or more “image + text + button” blocks.
It:
renders an optional section header (settings.header)
renders one block per settings.sets[]
supports different horizontal/vertical alignment per block
supports a special “image-only” layout when a set has an image but no title/text/button

Inputs (model contract)#

Model shape (storefront example)#

{
  "name": "TextWithImage",
  "view": "Default",
  "section": "SectionA",
  "settings": {
    "sets": [
      {
        "image": {
          "link": "https://example.com/media/sample.jpg",
          "alt": "Sample text"
        },
        "title": "Sample title",
        "text": "Sample text",
        "buttonText": "Sample button text",
        "buttonLink": "/sample",
        "verticalAlignment": 0,
        "horizontalAlignment": 2
      },
      "..."
    ],
    "id": "Component Id",
    "section": "SectionA",
    "type": "NoirTextWithImage",
    "name": "TextWithImage",
    "configuredInContentApi": true,
    "view": "Default",
    "displayName": "Sample text",
    "cssClass": "",
    "header": "",
    "alignment": "Left"
  },
  "translations": {
    "clickToLearnMoreAbout": "Sample text",
    "noImageAltAvailable": "Sample text"
  }
}

Required fields#

settings.id
settings.sets[]

Optional fields#

settings.cssClass
settings.header
settings.alignment (Left, Center, Right)
Per set:
set.image.link
set.image.alt
set.title
set.text
set.buttonText
set.buttonLink
set.horizontalAlignment (numeric)
set.verticalAlignment (numeric)
translations.clickToLearnMoreAbout
translations.noImageAltAvailable

JavaScript#

Global object#

Components/TextWithImage/Default.js currently exports an empty object:
There’s no Alpine binding (x-data) in this component’s Liquid template.

Dependencies#

None (Liquid-only rendering)

Notes#

horizontalAlignment and verticalAlignment are numeric enums interpreted in Liquid.
Image alt falls back to: set.image.alt → set.title → settings.header → translations.noImageAltAvailable.

Extras#

Template behavior (Liquid + Alpine)#

Computes a responsive widthClass based on how many sets exist:
2 sets → md:w-1/2
3 sets → md:w-1/3
4+ sets → md:flex-1
Uses onlyImage = set.image and set.title == null to switch image sizing (cover vs contain).
Alignment rules:
horizontalAlignment: 0 = left, 2 = center, 3 = right
verticalAlignment: 0 = top, 2 = center, 3 = bottom
Shows the button only when both buttonText and buttonLink exist.
Modified at 2026-04-14 13:18:56
Previous
Stores
Next
ThankYouPage
Built with