Skip to content
Back

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
Attach
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

  • 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.

Terminal
oxyn add gooey-attach-menu

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

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.

Attach
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

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.

Attach
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

Drop down

The same motion opening downward, with a softer goo.

Attach
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

GooeyAttachMenu

PropTypeDefaultDescription
itemsOption<Vec<GooItem>>Default::default()Rows (file types and sources when `None`).
sideString"up"`up` (drop-up) or `down`.
goof327.0Goo strength (blur px).
default_openboolDefault::default()Starts open (for previews).
on_pickEventHandler<String>—A row was picked (its key).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterorSpaceor↑or↓ onOpens the menu (focus moves into it)
↑or↓ · HomeorEndMove the grey fill
EnterPicks the row
EscapeCloses 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 GooeyAttachMenu from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: GooeyAttachMenuEl 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