Back to library

File upload

Drop or choose PDFs and images to attach.

    Recommended API

    Property or elementTypeExample initial valueDescription
    acceptFile type list.pdf,image/*Limit the picker to PDFs and images.
    multipleBoolean attributetrueAllow more than one attachment.

    States

    StateTriggerResult
    draggingDrag files over the drop zone.The surface highlights and a file chip follows the pointer.
    selectedDrop or choose supported files.The files are added to the list. The ring and check illustrate local attachment.
    unsupportedDrop or choose an unsupported file.The file is excluded and the status reports it.
    removedActivate Remove.The file is removed and the status announces the new count.

    CSS variables

    VariableTypeDefaultDescription
    --q-textcolor #28302aMain text and foreground color.
    --q-mutedcolor #70776fColor for secondary text.
    --q-font-sizelength 13pxBase size for the component text.
    --q-accentcolor #344e41Accent for active controls, indicators and focus.
    --q-bordercolor #dce0d8Color for outlines and dividers.
    --q-border-widthlength 1pxThickness of the outline.
    --q-radiuslength 10pxBase corner radius.
    --q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
    --q-control-pxlength calc(var(--q-space) * 4)Horizontal padding for controls.
    --q-control-pylength calc(var(--q-space) * 2.5)Vertical padding for controls.
    --q-spacelength 4pxBase unit for gaps and padding.