Attachment

File or image in a composer, a message or an upload list, with its state shown as text (uploading, processing, error, done), not only as a progress bar. The name only becomes a link once the file is ready; the actions stay reachable, especially on error. AttachmentGroup scrolls horizontally.

The four states

  • protocol-v2.pdf

    PDF · 2.4 MB

  • cycle-32-curve.png

    PNG · 840 KB

    Uploading 45%

  • results.csv

    CSV · 12 KB

    Processing…

  • samples.xlsx

    XLSX · 1.1 MB

@components.AttachmentGroup(components.AttachmentGroupProps{Label: "Attachments", Items: []components.AttachmentProps{
  {Name: "protocol.pdf", Meta: "PDF · 2.4 MB", State: "done", Href: "/files/protocol.pdf"},
  {Name: "curve.png", State: "uploading", Progress: 45},
}})