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

IconBlock

Purpose#

The IconBlock component renders a responsive set of “icon + title + text” items (benefits/features style layout).
It supports:
Column layout controlled by settings.columns
Optional link per icon item (turns the entire item into an external link)
Optional image per item
Optional header + text per item

Inputs (model contract)#

Model shape (storefront example)#

{
  "name": "IconBlock",
  "view": "Default",
  "section": "SectionA",
  "settings": {
    "columns": 4,
    "blockExtended": false,
    "textColor": "#ffffff",
    "icons": [
      {
        "text": "Sample text",
        "header": "Sample text",
        "image": {
          "id": "Image Id",
          "galleryId": "Gallery Id",
          "link": "https://example.com/media/sample.jpg",
          "mediaType": "Image"
        },
        "link": "/sample"
      },
      "..."
    ],
    "id": "Component Id",
    "section": "SectionA",
    "type": "IconBlock",
    "name": "IconBlock",
    "configuredInContentApi": false,
    "view": "Default",
    "displayName": "Sample text",
    "cssClass": "(UNDEFINED)"
  },
  "translations": {
    "clickToLearnMoreAbout": "Sample text",
    "iconBlock": "Sample text",
    "imageFor": "Sample text",
    "...": "..."
  }
}

Required fields#

settings.id
Used for wrapper id: comp-{{ id }}.
settings.icons[]
The list of icon items to render.

Optional fields#

settings.cssClass
Applied only when non-empty and not (UNDEFINED).
settings.columns (number)
Controls the column width on large screens:
1 → lg:w-full
2 → lg:w-1/2
3 → lg:w-1/3
4 → lg:w-1/4
other → defaults to full width
translations.*
Used for accessibility (aria-label, alt text fallbacks).

JavaScript#

Global object#

The component includes a JS file for consistency, but it does not implement any client-side behavior.
Typical shape:

Functions#

None.

Advice#

Keep this component render-only. Add JS here only if you introduce new interactive requirements (e.g., carousel behavior, hover tooltips, analytics click tracking).

Dependencies#

None (pure Liquid + Tailwind classes).
Uses translations for accessibility labels.

Notes#

Linked items open in a new tab (target="_blank"). If you want the strictest security posture for external links, add rel="noopener noreferrer" in the template.
settings.blockExtended and settings.textColor exist in the model example but are not used by the current Noir template.

Extras#

Template behavior (Liquid + Alpine)#

Layout / columns#

The template computes colClass from settings.columns and applies it to each item wrapper.
Items are inside a flex row layout (container-lg-row) with gaps.

Rendering rules per item#

For each icon item:
If icon.image.link is present → renders <img> with:
alt = "{{ translations.imageFor }} <header or translations.iconBlock>"
If icon.header is present → renders <h2>
If icon.text is present → renders <p>
If icon.link is present:
wraps the block with <a href="..." target="_blank">
uses translations.clickToLearnMoreAbout in aria-label
Modified at 2026-04-14 13:18:56
Previous
Form
Next
Invitation
Built with