# Blocks

Add ready-made sections and elements from the block picker, drag them onto the canvas, keep favorites and save your own blocks.

Use blocks to add ready-made sections and elements, such as a hero, a pricing table or a footer. A block you add becomes real code in your project that you edit like anything else.

The Add block picker open next to the Layers panel, with categories, search and block previews.

## What you can do

- Browse blocks by category and search them by name.
- Preview a block at desktop and mobile width before you add it.
- Add a block at an exact spot, or drag it onto the canvas.
- Mark blocks as favorites and find your recent ones.
- Save any element as your own block and reuse it.

## Add a block

1. ### Open the picker

   In the [Layers](/features/design/layers) panel, hover the gap between two rows, or an empty container, and choose **+**. The **Add block** picker opens. The block will land at that spot. You can also choose **Add block** in the command palette (`Cmd/Ctrl + K`).
2. ### Find a block

   Pick a category in the rail, or type in **Search blocks**. Each category shows its number of blocks. The categories are **Navbars**, **Heroes**, **Logos**, **Features**, **Stats**, **Testimonials**, **Pricing**, **FAQ**, **Calls to action**, **Team**, **Blog**, **Contact**, **Footers**, **Sign-in**, **App shells**, **Dashboards**, **E-commerce**, **Forms** and **Elements**. Your **Favorites** and **Recently used** blocks show first. A block of the **Forms** category opens the [form builder](/features/design/forms) on that form instead of adding it as is.
3. ### Preview it

   Hover a block, or press `Space` on it, to see a larger preview. Switch between **Desktop** and **Mobile** to check both widths, set the **Appearance** to **Light** or **Dark**, or try another design system: this is a preview only. **Reset the preview** puts it back.
4. ### Insert it

   Click the block, or press `Enter` on it. A notification confirms it, for example **Block added: Hero**. Choose **Undo** to take it back, or **Personalize with AI** to have the AI adapt its text and images to your project.

## Drag a block onto the canvas

Drag a block card from the picker (**Drag to the canvas**) and drop it on a frame. Where it lands depends on the element under the pointer:

| Drop zone                  | Where the block lands |
| -------------------------- | --------------------- |
| Top quarter of a container | Before it             |
| Bottom quarter             | After it              |
| Middle                     | Inside it, at the end |

A drop line shows the spot before you release.

## Favorites

Hover a block and choose **Add to favorites**. Favorites show first in the picker. Choose **Remove from favorites** to take a block out.

## Full pages and sites

The block picker adds one block at a time. To start from a full multi-page site, choose **Start from a template** in the Pages panel. See [Pages and routes](/features/design/pages-and-routes#start-from-a-site-template).

## My Blocks

1. ### Save an element

   Right-click the element on the canvas and choose **Save as block**.
2. ### Name it

   Enter a **Block name**, then choose **Save block**.

Your saved blocks are in the **My Blocks** tab of the picker. Open the menu of a block to **Rename** or **Delete** it. Deleting a saved block does not affect the copies already added to your project.

> [!NOTE]
>
> **Blocks become your code**
>
> A block is copied into your project as a component, with the images it needs. After that it is yours: edit it on the canvas, in the code panel or with the AI.

## Shortcuts

| Action                    | Shortcut   |
| ------------------------- | ---------- |
| Move between blocks       | Arrow keys |
| Preview the focused block | `Space`    |
| Insert the focused block  | `Enter`    |
| Close the picker          | `Esc`      |

## Related

- [Components](/features/design/components): Install UI components into your project.
- [Layers](/features/design/layers): Where the + button lives.
- [Forms](/features/design/forms): Build a form visually.
