Skip to content
Cynco UI

Documents

DocumentStudio

The brand editor for every printed document: logo, layout, typeface, language and footer note, with a live preview of any document at any paper size and stamp.

import { DocumentStudio } from "@cynco-labs/ui";

Example

Use

Settings → Documents (invoice templates). One brand drives invoices, receipts, statements, payslips and reports, so customers set it once.

Props

brand / defaultBrand / onBrandChange (DocBrand), documents ([{id, label, render({stamp, size}), sizes?, stamps?}]), defaultDocumentId, onPrint. brandFromCyncoTemplate(template, company) maps Cynco's stored invoice template onto a DocBrand.

Notes

Controls stack above the preview below 48rem of container width. Logo upload reads the file to a data URL (production should upload it and store the URL). Layout thumbnails and Inter / Geist / Newsreader; documents stay black ink, so there is no colour picker. Print prints only the previewed document.

Source Demo source Markdown