Skip to content

Attachment

Link to a downloadable file or collect a local attachment.

alpina-ui/ui/attachment

Interactive preview

Programme.txtText · UTF-8
No file selected
Drop files here or paste from the clipboard.

Usage notes

Link to a downloadable file by name and format. Use upload mode to collect local files with a localized FileInput.

When to use

Link to a real file that someone can open or download, such as a meeting agenda.

When to avoid

A form that collects files needs an upload input and feedback about accepted formats.

Accessibility

Use the document name in the link. Add the format and size where they can be read alongside it.

Keys
KeyAction
TabFocus the file link.
EnterOpen or download the file according to the link and browser settings.
Ctrl+V / ⌘VPaste clipboard files when the upload field has focus.

Content

Name the subject and edition first. Put file details after the title and retain official names in translated versions.

Use
Council agenda, March 2027 · PDF, 240 KB
Avoid
Download file

Copy in four languages

German
Traktandenliste15 characters
French
Ordre du jour13 characters
Italian
Ordine del giorno17 characters
Romansh
Glista da tractandas20 characters
Add to your project
npx --no-install alpina add attachment