# References with @

Type @ in the chat to point Lyna AI at a component, a block or a site template of Lyna's library, or at a person or an agent, with a picture and a live preview of each item before you pick it.

Type `@` in the message box to add an item of Lyna's library to your message: a component, a block or a site template. Lyna AI then builds with that exact item, for example "make a pricing page with @Pricing three tiers and @Card". The same menu also mentions a person of the project or gives a task to an agent.

The @ menu open above the message box on All, with Components, Blocks and Templates rows with their pictures, and the preview card of the highlighted block beside the list.

## What you can do

- Pick a component, a block or a site template with `@`, with a picture of each one.
- See a live preview of the highlighted item in your project's colors and fonts before you pick it.
- Mention a person of the project, or give a task to one of your agents, from the same menu.
- Add up to six references to one message, each shown as a chip in your sentence and a small card above the message box.
- Open a reference of a sent message again, on a desktop or a phone screen, and reference it again in one click.

## Pick an item

1. ### Type @

   In the message box, type `@`. The menu opens above the message box, on **All**. It lists, in this order:

   - **Recent**: the last three items you referenced in this project.
   - The best matches of each kind: **People**, **Agents**, **Components**, **Blocks** and **Templates**. A kind with more matches ends with a row such as **See all blocks**, with the number of matches.
   - **Files, folders and links**, which opens the file list. See [Mentions and context](/features/ai/mentions-and-context).
2. ### Narrow the list

   Type a word after the `@`, such as `@pricing` or `@card`. Each kind keeps only the items that match. A word with a `/` or a `.`, such as `@src/routes` or `@button.tsx`, is a file path: it opens the file list instead.

   Use `←` and `→` to switch between **All**, **People**, **Agents**, **Components**, **Blocks**, **Templates** and **Files**.
3. ### Look before you pick

   Move through the rows with `↑` and `↓`. For a component, a block or a template, a preview card shows the item: its picture at once, then a live preview in your project's theme when you stay on the row. It also says one fact about the item:

   | Kind      | What the preview card adds                                                                                                                                |
   | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | Component | **In your project**, or **Not in your project yet: Lyna installs it first.**                                                                              |
   | Block     | **Uses**, with the components the block is made of.                                                                                                       |
   | Template  | Its number of pages. On a plan without Pro, a template marked **Pro** says **On your plan, Lyna reads this template's pages and sections, not its code.** |
4. ### Add it

   Press `Enter` or `Tab`, or click the row. The item joins your message. `Enter` never sends the message here. Press `Esc` to close the menu: what you typed stays.

When nothing matches, the menu says **Nothing matches** with your word, and **Describe it in your own words, Lyna builds it.** In one kind, **Search every kind** takes your word back to **All**. When you are offline, components and blocks still show; templates need a connection.

## What each kind does

| Kind           | What it is                                                                                   | What Lyna AI does with it                                                                                                              |
| -------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **Components** | A component of the **Components** tab, such as Card or Tabs.                                 | Installs it first when your project does not have it, then uses it in your page.                                                       |
| **Blocks**     | A ready-made section of the block library, such as a pricing table or a FAQ.                 | Adds the block to your project as a component of its own, then places it in the page and adapts it. The step reads **Adding a block**. |
| **Templates**  | A site template of the **Templates** tab.                                                    | Reads its pages and sections, shown as **Reading a site template**, and follows that structure in your own design.                     |
| **People**     | A member of the project.                                                                     | They get a notification that opens the chat at your message.                                                                           |
| **Agents**     | One of your agents, a saved team (marked **Team**) or a built-in role (marked **Built-in**). | Gives that agent the task. See [Agent teams](/features/ai/agent-teams).                                                                |

A reference is something to build with, never a change of brand: Lyna AI keeps your colors, fonts and components. Adding a block, installing a component and following a template happen in **Build**. In **Ask** and **Plan**, Lyna AI reads your references and names them in its answer or its plan, and changes nothing.

> \[!NOTE]
> A reference never starts an agent. If a block is called like one of your agents, picking the block with `@` adds the block, and the agent stays idle.

## References in the message box

A reference shows twice: as a chip where it sits in your sentence, with the icon of its kind, and as a small card above the message box with its picture, its name and its category.

The message box with two reference cards above the text, a block and a component, and their chips with the kind icon in the sentence.

- Point at a card, or move the focus to it, to see a larger picture with the full name. Its chips in the sentence light up.
- Remove a card with its remove button: its chips leave the sentence too, in one step you can undo.
- Delete the last chip of a reference, and its card goes too. A chip goes away whole with one press of `Backspace`.
- Pick the same item again to add one more chip to the same card: it stays one reference.
- Only a pick makes a reference. `@Card` typed by hand stays plain text.

A message holds up to six references. At six, the menu says **Up to 6 references per message** and **Remove one to add another.**, and the other library rows cannot be picked until you remove one. An item already in your message shows **Added** in the menu.

> \[!NOTE]
> A message you have not sent keeps its references when you reload the page: each chip and card comes back where it was. A reference to an item that left Lyna's library comes back as plain text, with no card: pick another item with `@` if you need one.

## References in a sent message

Your message in the chat keeps its chips, and the cards line up under it. Click a card to open the item's preview.

The preview panel of a block a sent message referenced, with the Desktop and Phone switch, its details and the Reference again button.

The preview opens beside the page on a desktop, and as a sheet on a phone. It holds:

- a live preview in your project's theme. For a block, switch between **Desktop** and **Phone**. A template shows its picture.
- the details: **Category**, **Uses** for a block, **Import from** for a component, **Pages** and **Sections** for a template.
- **Reference again**, which adds the item to your next message.
- **Open in Components**, **Open in the block library** or **Open in Templates**, which opens the tab that holds the item.

An item that left Lyna's library keeps its card, with a line that says it is out of the library, and opens nothing.

## On a phone

The same menu opens above the keyboard, with taller rows and no preview card. The keyboard stays open the whole time, so you keep typing your sentence.

## Related

- [Mentions and context](/features/ai/mentions-and-context): Add files, folders, links, Git changes and problems with @.
- [Blocks](/features/design/blocks): The ready-made sections of the block library.
- [Components](/features/design/components): The components you can add to a page.
- [Agent teams](/features/ai/agent-teams): Agents that take a task.
