Skip to content
Back

Attachment chipsPro

Files on their way into a prompt: a ring of progress round each icon, then type and size; failed uploads offer Retry, files over the limit stay red, and extras fold into +N.

oxyn add attachment-chips
Q3 report.pdfUploading ·
pitch.pptxUploading ·
launch-film.mp4Too big · 48.2 MB
moodboard.pngUploading ·
Ask about these files…
6 files · 5 uploading
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Show each file's progress and problems where the user is about to send, without a separate upload panel.

When not to use

Installation

Attachment chips is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add attachment-chips

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Default

Six files: the slides fail with Retry, the film is too big, the rest show rings as they upload; the sheet and the doc fold into +2.

Q3 report.pdfUploading ·
pitch.pptxUploading ·
launch-film.mp4Too big · 48.2 MB
moodboard.pngUploading ·
Ask about these files…
6 files · 5 uploading
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Compact

Three chips before +N, slow uploads: the report and the failing slides stay in view, +4 holds the rest.

Q3 report.pdfUploading ·
pitch.pptxUploading ·
Ask about these files…
6 files · 5 uploading
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Roomy

A 60 MB limit and room for eight: nothing is refused or folded.

Q3 report.pdfUploading ·
pitch.pptxUploading ·
launch-film.mp4Uploading ·
moodboard.pngUploading ·
pipeline.xlsxUploading ·
brief.docxUploading ·
Ask about these files…
6 files · 6 uploading
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

AttachmentChips

PropTypeDefaultDescription
filesOption<Vec<DemoFile>>Default::default()Starting files (six samples when `None`).
max_mbf6425.0Size limit in MB.
max_visibleusize5Chips shown before +N.
speedf641.5Megabytes a second for the demo upload.
on_removeEventHandler<String>—Removed a chip (file name).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabRetry and remove on each chip, +N, Add file
Enter onNShows every chip

Accessibility

  • The tray is a list; each chip's label names the file, its type and size; remove and Retry buttons name the file.
  • Upload results are said in a status line; failed and too-big chips say so in text as well as red.

Responsive behaviour

  • 520 px composer; chips wrap and long names ellipsize at 150 px.
Edge cases (spec)

520 px composer; names ellipsize at 150 px.

Notes for AI

  • Import AttachmentChips from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: AttachmentChipsEl in oxyn_gpui.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI