I am exploring FilePreview component, with sample Code
I expected when I click the PDF file in the FileBrowser, it will preview PDF content, but it keep downloading .pdf file
if this a mime type issue?
Enhancement Proposal:
would be nice to have custom preview support with my own viewer components : e.g., Extend UI
would be nice if developer can pass their own viewer component as prop to FileBrowser so FileBrowser can generate direct URL and pass it to viewer component for rendering.
# Extend UI components for document viewers for PDF, DOCX, XLSX, and CSV (optional)
bunx --bun shadcn@latest add -p src/components/extend @extend/pdf-viewer
bunx --bun shadcn@latest add -p src/components/extend @extend/docx-viewer
bunx --bun shadcn@latest add -p src/components/extend @extend/schema-builder
I am exploring FilePreview component, with sample Code
I expected when I click the PDF file in the FileBrowser, it will preview PDF content, but it keep downloading
.pdffileif this a mime type issue?
Enhancement Proposal:
would be nice to have custom preview support with my own viewer components : e.g., Extend UI
would be nice if developer can pass their own viewer component as prop to FileBrowser so FileBrowser can generate direct URL and pass it to viewer component for rendering.