Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions content/blocks/preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,19 @@ description: >-
dimensions and responsive controls.
type: docs
tags: block
modules: ["preview"]
---

## Overview

> [!IMPORTANT]
> Since {{< release version="v2.8.0" short="true" link-type="link" >}}, the
> `preview` block requires the `preview` JS module for device switching and
> auto-scaling. Add `modules: ["preview"]` to the front matter of any page that
> uses this block. Sites that use `preview` on many pages can set
> `integration = "core"` for the preview module in their `params.toml` to load
> it globally instead.

### Basic preview

The `preview` content block renders a live URL preview in an iframe with device switcher controls. By default, it displays in desktop view.
Expand Down