Polaroid stackPro
An Oxyn original: image attachments as a little stack of prints that fans out when you point at it; press one to bring it forward, take any out.
oxyn add polaroid-stackThe preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Image attachments that stay small in the composer but are easy to check and prune.
When not to use
- Drag a file into the box to upload it: use Upload dropzone instead.
- Files on their way into a prompt: use Attachment chips instead.
- An Oxyn original: use Drop lanes instead.
Installation
Polaroid stack 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.
oxyn add polaroid-stackUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Stacked
Four prints leaning on each other; point at them to fan them out, press one to bring it forward.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Fanned
Six prints, fanned wide from the start.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Pair
Two prints and a tight fan.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
PolaroidStack
| Prop | Type | Default | Description |
|---|---|---|---|
count | usize | 4 | How many prints to start with (1–6). |
spread | f32 | 36.0 | Fan spread in degrees. |
default_open | bool | Default::default() | Starts fanned out (for previews). |
on_remove | EventHandler<String> | — | A print was removed (its name). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Each print and its remove button (focus fans the stack), then Add image |
| Enter on a print | Brings it to the front |
Accessibility
- The stack is a group labelled with the count; each print is a button named after its file.
- The caption names the front print; adding and removing are said in a status line.
Responsive behaviour
- 340 px stage; the fan stays inside it up to 60°.
Edge cases (spec)
340 px stage; the fan stays inside it up to 60°.
Notes for AI
- Import
PolaroidStackfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
PolaroidStackElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.