Documentation Index
Fetch the complete documentation index at: https://docs.heylua.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Documents component sends downloadable files to users — PDFs, contracts, invoices, images, and any other file type. Each document displays as a clickable card with a filename and opens in a new tab.Format
Fields
| Field | Description |
|---|---|
[Display Name] | The label shown to the user on the file card |
(url) | Direct URL to the file (use the Lua CDN for uploads) |
filename: | The actual filename with extension (e.g. contract.pdf) |
mime: | The MIME type of the file (e.g. application/pdf) |
Example
Common MIME Types
| File Type | MIME Type |
|---|---|
application/pdf | |
| Word (.docx) | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| Excel (.xlsx) | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| PNG image | image/png |
| JPEG image | image/jpeg |
| CSV | text/csv |
Configure in Persona
Upload Files with the CDN
Use the Lua CDN API to upload files before referencing them in the documents component. The CDN returns a permanent URL you can include in the block.CDN API
Upload files and get permanent URLs
Best For
- Loan agreements and contracts
- Invoices and receipts
- Policy documents
- Onboarding packets
- Reports and summaries
- Any user-facing file download
Payment Component
Next: Payment links

