--- title: Preact description: Embed Documenso signing in your Preact application using the official SDK. --- import { Tab, Tabs } from 'fumadocs-ui/components/tabs'; ## Installation ``` npm install @documenso/embed-preact ``` ``` yarn add @documenso/embed-preact ``` ``` pnpm add @documenso/embed-preact ``` --- ## Direct Template ```tsx import { EmbedDirectTemplate } from '@documenso/embed-preact'; const SigningPage = () => { return ( console.log('Ready')} onDocumentCompleted={(data) => { console.log('Signed:', data.documentId); }} onDocumentError={() => console.error('Error')} /> ); }; ``` --- ## Signing Token ```tsx import { EmbedSignDocument } from '@documenso/embed-preact'; const SigningPage = ({ token }: { token: string }) => { return ( { console.log('Signed:', data.documentId); }} /> ); }; ``` --- ## Styling (Platform Plan) ```tsx import { EmbedDirectTemplate } from '@documenso/embed-preact'; const StyledEmbed = () => { return ( ); }; ``` See [CSS Variables](/docs/developers/embedding/css-variables) for all available variables. --- ## See Also - [Embedding Overview](/docs/developers/embedding) - Props reference and concepts - [CSS Variables](/docs/developers/embedding/css-variables) - Customize appearance - [Authoring](/docs/developers/embedding/authoring) - Embed document creation