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

# Place a component

> Assign a dynamic component its placement: a page group, target devices, and a position on the page. Pick the position on your live site or mark it with one line of HTML.

A dynamic component does not appear anywhere until it has a placement. Each component has exactly one placement, which defines four properties.

| Property | Defines |
| - | - |
| **Page group** | The pages the component appears on. Read [Page groups](https://crossword.ai/docs/components/dynamic/page-groups.md). |
| **Devices** | Every screen, desktop only, or phone only. A phone is any screen 640px wide or less. |
| **Spot** | A page element and a position relative to it: above, below, or inside at the top or bottom. |
| **Spacing** | The space outside the component, its maximum width and alignment, and its position when it sits in a row beside other content. |

The placement also links to the Workflow that generates the component's content for this page group. Read [Workflows](https://crossword.ai/docs/components/dynamic/workflows.md).

To show the same component on two kinds of page, duplicate it and place the copy. Read [Create and style a component](https://crossword.ai/docs/components/dynamic/create-and-style.md#duplicate-and-delete).

## Add a placement

1. Open the component and go to the **Placement** tab.
2. Select **Add placement** and choose a page group. If none exist, first create one under **Page groups**.
3. Choose the position. Use **Pick on the site**, or enter an element selector such as `.product-description`.
4. Select **Save**.

The **Show on the site** row at the top indicates whether visitors can see the component, and on which page group. It contains the on switch and **Remove**.

## Pick a position on your live site

**Pick on the site** opens your store's live page inside the dashboard. The controls sit on the left, with **Website** and **Mobile** tabs.

> [!NOTE]
>
> **Pick on the site** requires the Crossword extension for Chrome. Without it, enter the element selector or use the [HTML snippet](#embed-with-html).

**1. Open a page**

Paste the address of a page in the group. The page loads as a signed-out visitor sees it.

**2. Select an element**

Hover over a part of the page. The part is outlined with **Click to place here**. Click it.

**3. Choose a position**

Select **Above** or **Below**. An element that sits in a row also offers **Left** and **Right**. A container with elements inside also offers **Inside, top** and **Inside, bottom**. Hovering over an option draws a guide line where the component will appear.

**4. Adjust and save**

The component renders at the selected position. To reposition it, click another element, drag the component, or use the arrows. Select **Use this spot** to keep the position. Nothing is saved until you do.

The placement remembers the page you picked on, so the picker reopens there next time. **Reset** restores the saved page and position. Components already placed on the page are outlined with a dashed line.

While a page is open in the picker, your Crossword widget does not load on it. No activity is recorded for your workspace. Your other analytics tools still count the visit.

> [!WARNING]
>
> A position inside a fixed or sticky area, such as a sticky header, can cover other content. The **Placement** tab warns you when the position is in one.

## Embed with HTML

Each placement provides a single line of HTML that a developer can paste into the page, with a **Copy** button.

```html theme={null}
<div data-crossword-component="YOUR_COMPONENT_ID"></div>
```

Wherever this line appears on a page, the component renders there, regardless of the position set in the placement. Use it when the page layout changes often, or when the position is difficult to pick visually.

## Placement status

The **Placement** tab reports the current status in plain language, with a link to the run.

* **Hidden until written.** Content for some pages has not been written yet. The status shows how many pages are pending.
* **Hidden: the last rewrite failed checks.** The latest content failed a check. The component is withheld across the entire page group until a rewrite passes.

## Example

The following placement adds a Suggested questions component below the product description on every Energy product page.

```yaml theme={null}
Component: Suggested questions
Page group: Energy products
Devices: Every screen
Spot: Below .product-description
Space outside: Medium
Max width and align: Full width, center
Workflow: Product pages
```

## Related

> [card] [Page groups](https://crossword.ai/docs/components/dynamic/page-groups.md)

> [card] [Workflows](https://crossword.ai/docs/components/dynamic/workflows.md)

> [card] [Shopper experience](https://crossword.ai/docs/components/dynamic/shopper-experience.md)

> [card] [Create and style a component](https://crossword.ai/docs/components/dynamic/create-and-style.md)


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