A screen template for uploading a PDF document
npx shadcn add https://registry.samplehc.com/r/document-upload.json
screens/document-upload-screen.tsx
from workflows_py.workflow import ScreenStep, Step, Workflow workflow = Workflow(...) workflow.then( ScreenStep( "document-upload", screen_path="./screens/document-upload-screen.tsx", ) ).then( # Access the uploaded document in subsequent steps Step( "process-document", lambda ctx: process_document(ctx.get_step_result("document-upload")["document"]), ) )
uploadedFiles
object