Gooey attach menuPro
A + button whose drop-up – PDF, Image, Excel, Doc, Slides, Code, Drive, GitHub – pours out of it like liquid and runs back in when it closes.
oxyn add gooey-attach-menu- Add
- From
- PDFRead and cite
- ImagePNG, JPG or a screenshot
- ExcelSheets and CSV
- DocWord documents
- SlidesDecks to summarise
- CodeA file from the repo
- DrivePick from your drive
- GitHubIssues, PRs and files
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.
Rendered from Rust at build time · goes live when visible
When to use
- The attach drop-up on its own, for any toolbar: file types and sources pouring out of a + button.
When not to use
- A composer whose attach drop-up and model menu both pour out of its top edge above their buttons: use Gooey composer instead.
- A model chip whose list: use Gooey model menu instead.
- An Oxyn original: use Liquid tabs instead.
Installation
Gooey attach menu 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 gooey-attach-menuUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Open
The drop-up settled open: file types with their icons, then sources with their marks. Close it and open it again to watch it pour out of the button.
- Add
- From
- PDFRead and cite
- ImagePNG, JPG or a screenshot
- ExcelSheets and CSV
- DocWord documents
- SlidesDecks to summarise
- CodeA file from the repo
- DrivePick from your drive
- GitHubIssues, PRs and files
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Closed
Press + : a stem stretches out of the button and pinches off as the menu swells from the corner and the rows arrive top to bottom.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Drop down
The same motion opening downward, with a softer goo.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
GooeyAttachMenu
| Prop | Type | Default | Description |
|---|---|---|---|
items | Option<Vec<GooItem>> | Default::default() | Rows (file types and sources when `None`). |
side | String | "up" | `up` (drop-up) or `down`. |
goo | f32 | 7.0 | Goo strength (blur px). |
default_open | bool | Default::default() | Starts open (for previews). |
on_pick | EventHandler<String> | — | A row was picked (its key). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| EnterorSpaceor↑or↓ on | Opens the menu (focus moves into it) |
| ↑or↓ · HomeorEnd | Move the grey fill |
| Enter | Picks the row |
| Escape | Closes and returns to + |
Accessibility
- The + button has aria-haspopup=menu and aria-expanded; rows are menuitems followed with aria-activedescendant.
- A closed menu leaves the page; a press outside closes a menu you opened.
- With reduced motion the menu appears and leaves at once.
Responsive behaviour
- 280 px menu; it scrolls inside 330 px.
Edge cases (spec)
280 px menu.
Notes for AI
- Import
GooeyAttachMenufromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
GooeyAttachMenuElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.