---
title: 'Liquid objects: option_with_value'
description: A product option paired with the value selected for a variant.
source_url:
  html: 'https://shopify.dev/docs/api/liquid/objects/option_with_value'
  md: 'https://shopify.dev/docs/api/liquid/objects/option_with_value.md'
api_name: liquid
---

# option\_​with\_​value

A product option paired with the value selected for a variant.

## Properties

* * **name**

    [string](https://shopify.dev/docs/api/liquid/basics#string)

  * The name of the product option.

  * **value**

    [product\_option\_value](https://shopify.dev/docs/api/liquid/objects/product_option_value)

  * The option value selected for the variant.

### Returned by

* [line\_​item.options\_​with\_​values](https://shopify.dev/docs/api/liquid/objects/line_item#line_item-options_with_values)
* [variant.options\_​with\_​values](https://shopify.dev/docs/api/liquid/objects/variant#variant-options_with_values)
