Przejdź do głównej zawartości

AttributeSwatch

Color or pattern swatch for visual attribute display

type AttributeSwatch {
colorHex: String
image: Image
}

Fields

AttributeSwatch.colorHex ● String scalar

Hex color code (e.g., #FF5733)

AttributeSwatch.image ● Image object

Image swatch for pattern/material attributes (e.g. fabric texture, wood grain). Use image { url(transform: { maxWidth: 80 }) altText } for small swatch tiles. Mutually meaningful with colorHex only when storefront chooses to render texture-over-color preview.

Member Of

AttributeFilterValue object ● FilterValue object