---
title: PREVIEW_ATTRIBUTE
description: >-
  Page previews for link hovers and search. A theme marks the part of its page
  worth previewing with `data-sv-preview`; previews fetch the target URL and
  clone those nodes. Works for static output and SvelteKit hosts alike.
updated_at: '2026-10-26T01:10:35+01:00'
created_at: '2026-09-25T10:30:03+02:00'
symbol:
  kind: variable
  name: PREVIEW_ATTRIBUTE
  signatures:
    - 'const PREVIEW_ATTRIBUTE: "data-sv-preview"'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/ui/src/lib/preview.ts#L6
---

# PREVIEW_ATTRIBUTE
