Drop lanesPro
An Oxyn original: one drop target that splits into where a file should go – this message, the project's files or a style reference.
oxyn add drop-lanesThe 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
- Decide at drop time what a file is for – this message only, the whole project, or just its look.
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 Polaroid stack instead.
Installation
Drop lanes 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 drop-lanesUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Documents
Four documents waiting: drag one onto a lane, or press it and then a lane.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Media
An image, a film and a voice memo.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Code
Source, notes, a sheet and an archive.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
DropLanes
| Prop | Type | Default | Description |
|---|---|---|---|
files | Option<Vec<DemoFile>> | Default::default() | Files to place (four samples when `None`). |
on_file | EventHandler<(String, String)> | — | A file went to a lane: (file name, lane key). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Enter on a file | Picks it up (pressed) |
| Enter on a lane | Files the picked file there |
| Enter on × | Sends a filed file back |
Accessibility
- Files are toggle buttons (aria-pressed); lane headings are buttons, enabled once a file is picked.
- Every move is said in a status line, with the lane's name.
Responsive behaviour
- 560 px card; lanes stack under 480 px.
Edge cases (spec)
560 px card; lanes stack under 480 px.
Notes for AI
- Import
DropLanesfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
DropLanesElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.