# Product Card

* **Component**: \<ProductCard/>
* **Path**: /components/layout/product-card.tsx
* **Import**:

```typescript
import { ProductCard } from "@/components/layout/product-card";
```

<figure><img src="/files/OpCIHig7r2h2jlBzK2zP" alt=""><figcaption><p>Product Card with X link</p></figcaption></figure>

The card displays:

* Label
* "Owner" (links to X if it starts with @)
* Image
* Tagline
* Category
* Options (links/filters)
* Rating / favorite actions if flip effect is selected

It's clickable and will get you to the product own page.

### Sizing

Different sizes are available to fit your products, simply set the "cards" value to "large" in `metadata` file:

{% code title="data/config/metadata.js" %}

```javascript
const metadata = {
 ...
cards: "large", // "default" | "large" | "vertical"
...
};

module.exports = { metadata };

```

{% endcode %}

<div><figure><img src="/files/XjYzytrw9eKXOPlDjGpx" alt=""><figcaption><p>Large Cards</p></figcaption></figure> <figure><img src="/files/AfWGjgJH8Oz1hetkWub5" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
Responsive and number of cards per column will be automatically updated for pre-defined sizes.
{% endhint %}

###

### Flip Effect

For a clean minimalist deign, you can opt for flipping cards.

Front card will show image only, and back will appear on hover with all infos and actions (rating & favorite):

{% code title="data/config/metadata.js" %}

```javascript
const metadata = {
 ...
enableFlipCards: true, // Set to true to enable flip functionality
...
};

module.exports = { metadata };

```

{% endcode %}

<div><figure><img src="/files/A3LRZz1TwcDsd9wrR6ej" alt=""><figcaption><p>Large Cards</p></figcaption></figure> <figure><img src="/files/U6UPoXFzf9fuxP2RRaCp" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
The vertical layout + flip effect is perfect for books for example!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.directoryfa.st/directory-components/product-card.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
