Skip to content
Back

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-stack
photo-1.jpg · 1 of 4
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

  • Image attachments that stay small in the composer but are easy to check and prune.

When not to use

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.

Terminal
oxyn add polaroid-stack

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

Stacked

Four prints leaning on each other; point at them to fan them out, press one to bring it forward.

photo-1.jpg · 1 of 4
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

Fanned

Six prints, fanned wide from the start.

photo-1.jpg · 1 of 6
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

Pair

Two prints and a tight fan.

photo-1.jpg · 1 of 2
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

PolaroidStack

PropTypeDefaultDescription
countusize4How many prints to start with (1–6).
spreadf3236.0Fan spread in degrees.
default_openboolDefault::default()Starts fanned out (for previews).
on_removeEventHandler<String>—A print was removed (its name).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabEach print and its remove button (focus fans the stack), then Add image
Enter on a printBrings 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 PolaroidStack from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: PolaroidStackEl 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