Skip to main content
Preview renders a source document viewer (tool="preview"). It reads token and theme from AiqlProvider. Pass the document id and optional page or chunk highlight props.

Try it live

Import

Usage

Basic

Jump to a page and highlight a chunk

Custom loading and error UI

Styling

API Reference

Preview props

token and theme come from AiqlProvider. They are not Preview props.