Lumeo

Upload Trigger

A Button-styled InputFile trigger for file-pick-only flows — the look and feel of a Lumeo Button that opens the native file picker, without FileUpload's progress and file-list UI.

When to Use

  • A "Replace document" or "Upload logo" action where the file list lives elsewhere
  • Composer toolbars that add attachments inline
  • Any minimal pick affordance that should match surrounding Lumeo buttons

For full upload UI with progress, drag-and-drop, and validation use FileUpload. UploadTrigger is intentionally the minimal pick-trigger primitive.

API Reference

UploadTrigger

Property Type Default Description
OnFilesSelected EventCallback<InputFileChangeEventArgs> Fires once per picker confirmation with the chosen files. You handle any subsequent upload logic.
Multiple bool false Allow selecting multiple files (maps to the native picker's multi-select).
Accept string? MIME-type / extension filter (e.g. image/*, .pdf,.docx). Null means no filter.
Disabled bool false Disables the trigger.
Variant Button.ButtonVariant Default Visual variant matching the corresponding Button variant.
Size Button.ButtonSize Default Size matching the corresponding Button size.
Text string? "Pick a file" Trigger label. Falls back to a localized default. Ignored when ChildContent is set.
ChildContent RenderFragment? Custom label content. Overrides Text.
Icon RenderFragment? Lucide.Upload Custom leading icon. Defaults to the upload icon.
Class string? Additional CSS classes appended to the trigger.
  • File Upload — Full upload UI with progress, drag-and-drop, and validation
  • Button — The visual style UploadTrigger mirrors