← Files DocuSealARCHIVED FILE

skills/docuseal-code/references/embed/signing-form-react-preview-completed-document.md

991 Bytes · Oct 9, 2026 · 06:04 UTC

↓ Download file

See the change to this file →

## Preview completed document

To display a completed signed document in the embedded form, use the `preview` attribute with the submitter's `slug`. The form will render the document with all filled fields in read-only mode.

#### preview

Set to `{true}` to display the document in read-only preview mode without the submit button.

#### token

A [JWT token](signing-form-react.md) is required to authenticate the preview of completed documents.

Pass the `slug` of a completed submitter to display the signed version of the document. The slug can be obtained from the [Create a Submission](https://www.docuseal.com/docs/api#create-a-submission) API response or from the [form.completed](https://www.docuseal.com/docs/api#form-webhook) webhook payload.

#### React

```
import { DocusealForm } from '@docuseal/react'

export function App({ slug, token }) {
  return (
    <DocusealForm
      src={`https://docuseal.com/s/${slug}`}
      preview={true}
      token={token}
    />
  );
}
```

SHA-256: 75cc87319e447be12059c60001fc9a0ab9012fd27b939ad00bc2e458980f33fe