> ## Documentation Index
> Fetch the complete documentation index at: https://docs-loja.usecorvex.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# product

> Field type product — UUID de um produto.

# `product`

| | |
| - | - |
| **type** | `product` |
| **Valor salvo** | `string` — UUID do produto |

O lojista escolhe um produto. O tema recebe o id, não o objeto.

## Propriedades

O validador exige `id` e `type`. `label` é recomendado para o inspetor. `default` é opcional.

O picker grava `product.id`. Limpar a seleção grava `''`. `storefront.products.get('')` devolve `null`. `get` também aceita handle; o valor deste campo é o id.

## Exemplo schema

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "id": "featuredProduct",
  "type": "product",
  "label": "Produto em destaque"
}
```

## Runtime

Buscar objeto completo via SDK — o setting **não** inclui o Product:

```jsx theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { createStorefront } from '@corvex/theme-sdk';

// ref = UUID salvo pelo editor (ou handle — get aceita ambos)
const product = await storefront.products.get(settings.featuredProduct);
```

`storefront.products.getByHandle(handle)` existe para busca explícita por slug; para settings `type: product`, use **`get(ref)`**.

Ou declarar `data: ['product']` quando em contexto de página produto.

Ver [Product Contract](https://docs-loja.usecorvex.com.br/reference/contracts/product.md) · [Product Card Cookbook](https://docs-loja.usecorvex.com.br/cookbook/product-card.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.