{% comment %} Renders a visual display element, currently just a swatch. If wrapped in "visual-display-parent" and "visual-display-parent--swatch" classes, this will receive hover and focus states. Add a class of "active" or "disabled" to the parent element to change the state of the visual display. Accepts: - type: {String} Can be "colors" or "image", or nothing to represent an empty state. - value: {Object} Will be an array of color drops, or image drop, depending on the "type" - presentation: {String} Can only be "swatch" Usage: {% render 'visual-display', type: value.display.type, value: value.display.value, presentation: filter.presentation %} {% endcomment %}