Documentation Index
Fetch the complete documentation index at: https://mintlify.com/juanmatz/inspection-form-euroautos/llms.txt
Use this file to discover all available pages before exploring further.
InspectionReport renders a print-ready inspection report from a completed Inspection object. It can be used as a React component for in-app preview inside a modal or dedicated report page, or called programmatically via the generatePDF helper to produce a downloadable PDF Blob. The report layout includes the Euroautos workshop header, vehicle details, a per-section checklist summary with status indicators, inspector notes, photo evidence for critical and attention items, and the inspector’s signature.
Import
Preview Usage
Render the report as a scrollable preview inside a modal or drawer. This is the recommended approach for the in-app “View Report” flow before the customer receives the final PDF.Programmatic PDF Export
UsegeneratePDF when you need a Blob directly — for example, to upload the PDF to cloud storage, attach it to an email, or trigger an immediate browser download without rendering the report in the DOM.
generatePDF renders the report component into an off-screen container, applies print-optimised styles, then uses the browser’s PDF rendering pipeline to produce the Blob. Because it runs in-browser, no server-side PDF library is required.
generatePDF is an async function and may take 1–3 seconds for inspections with many photos. Show a loading indicator in your UI while awaiting the result.Props — InspectionReport
The completed inspection record to render. The component expects
inspection.status to be 'submitted' or 'reviewed'. Passing a draft inspection (status 'in-progress') is supported but will render an DRAFT — NOT FINALISED watermark across every page of the report.Workshop branding and contact details rendered in the report header. At minimum,
name is required. See the WorkshopConfig type section below.When
true, photo evidence attached to Attention and Critical checklist items is included in the report after the relevant section summary. When false, the photos are omitted and only the status, label, and inspector notes are shown — producing a more compact report.The language code used for all static report text — section headings, status labels, date formatting, and the signature declaration. Currently
'es' (Spanish) is the only fully supported value. Passing 'en' will render English labels; other values fall back to 'es'.An optional CSS class applied to the outermost
<div> wrapper of the report. Use this to control width, margins, or theme overrides without targeting internal component selectors.generatePDF Options
generatePDF accepts the same options as the component props, minus className. It returns a Promise<Blob> that resolves to a PDF file.
WorkshopConfig Type
TheWorkshopConfig object controls the workshop identity block rendered at the top of every report page. All fields except name are optional — omitted fields are simply not rendered in the header.