GitHub

ShopifySwatch

Type

import { ShopifySwatch } from '@daffodil/driver/shopify'

A visual representation for filter values, containing a color, an image, or both. The FilterValue object's swatch field returns this when the filter's presentation is set to SWATCH.

interface ShopifySwatch {
  __typename: "Swatch"
  color: Maybe<Scalars['Color']['output']>
  image: ShopifyMediaImage
}

Properties

__typename
"Swatch"
color
Maybe<Scalars['Color']['output']>

The swatch color.

image
ShopifyMediaImage

The swatch image.