File upload
Drop or choose PDFs and images to attach.
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
accept | File type list | .pdf,image/* | Limit the picker to PDFs and images. |
multiple | Boolean attribute | true | Allow more than one attachment. |
States
| State | Trigger | Result |
|---|---|---|
dragging | Drag files over the drop zone. | The surface highlights and a file chip follows the pointer. |
selected | Drop or choose supported files. | The files are added to the list. The ring and check illustrate local attachment. |
unsupported | Drop or choose an unsupported file. | The file is excluded and the status reports it. |
removed | Activate Remove. | The file is removed and the status announces the new count. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-border-width | length | 1px | Thickness of the outline. |
--q-radius | length | 10px | Base corner radius. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-control-px | length | calc(var(--q-space) * 4) | Horizontal padding for controls. |
--q-control-py | length | calc(var(--q-space) * 2.5) | Vertical padding for controls. |
--q-space | length | 4px | Base unit for gaps and padding. |