You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syncfusion<supstyle="font-size:70%">®</sup> React components include built-in themes. Import a theme to match the look and feel of the application.
107
+
Syncfusion<supstyle="font-size:70%">®</sup> React components include built-in themes. Import the PDF Viewer theme and base styles to match the look and feel of the application.
104
108
105
-
For projects using the App Router, add the imports to `src/app/globals.css`. For projects using the Pages Router, add them to a global stylesheet such as `pages/_app.js` or its CSS import. Remove or consolidate any conflicting styles as needed.
109
+
/* Where to add the imports: */
110
+
/* - App Router: put these in `src/app/globals.css`*/
111
+
/* - Pages Router: put them in `pages/_app.js` or its imported global CSS */
106
112
107
113
{% tabs %}
108
114
{% highlight css tabtitle="globals.css" %}
109
115
116
+
/* Minimal recommended imports: PDF Viewer theme and base styles */
To learn more about the PDF Viewer component, see the [documentation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/getting-started#module-injection).
176
177
177
-
N> [View the Next.js PDF Viewer sample in the GitHub repository]https://github.com/SyncfusionExamples/syncfusion-react-pdfviewer-component-in-nextjs
178
+
N> [View the Next.js PDF Viewer sample in the GitHub repository](https://github.com/SyncfusionExamples/syncfusion-react-pdfviewer-component-in-nextjs)
title: Getting started with Syncfusion React PDF Viewer in Preact
4
+
description: Short overview and task links for using the Syncfusion React PDF Viewer with Preact.
5
+
control: PDF Viewer
6
+
platform: document-processing
7
+
documentation: ug
8
+
domainurl: ##DomainURL##
9
+
---
10
+
11
+
12
+
# Getting started with Syncfusion React PDF Viewer in Preact
13
+
14
+
This page is a short, task-focused overview for integrating the Syncfusion React PDF Viewer into a [Preact](https://preactjs.com/) app. Use the short sections below for quick tasks; a minimal full example is provided as an optional reference.
15
+
16
+
[Preact](https://preactjs.com/) is a lightweight React alternative that preserves the React-compatible API. Use Preact when you want smaller bundle size while reusing the React viewer components.
17
+
## Setup
18
+
19
+
How‑to: Create a Preact project and install the Syncfusion package.
20
+
21
+
```bash
22
+
npm init preact # choose JavaScript or TypeScript as needed
0 commit comments