Liquid dropsPro
An Oxyn original: a round + button whose actions drip out one after another and flow back in when it closes.
oxyn add liquid-dropsThe 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
- A compact action launcher whose actions visibly come out of the 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 + button whose drop-up: use Gooey attach menu instead.
- A model chip whose list: use Gooey model menu instead.
Installation
Liquid drops 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 liquid-dropsUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Open
Four actions resting above the button, labels beside them.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Closed
Press the button: each action drips out after the one before and pulls free.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Tight
Drops closer together with heavy goo – they stay joined like a column of liquid.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
LiquidDrops
| Prop | Type | Default | Description |
|---|---|---|---|
actions | Vec<(String, String)> | vec![("file".to_string(), "Upload a file".to_string()), ("shot".to_string(), "Screenshot".to_string()), ("voice".to_string(), "Voice note".to_string()), ("link".to_string(), "Paste a link".to_string())] | Actions: (key, label); icons by key (`file`, `shot`, `voice`, `link`). |
gap | f32 | 54.0 | Gap between drops in px. |
goo | f32 | 7.0 | Goo strength (blur px). |
default_open | bool | Default::default() | Starts open (for previews). |
on_pick | EventHandler<String> | — | An action was picked (its key). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Enter on the button | Opens or closes |
| Tab | Each action while open |
| Escape | Closes |
Accessibility
- The button reports aria-expanded; closed actions leave the tab order.
- Each action is a button named by its label.
Responsive behaviour
- 220 px column anchored to its right edge.
Edge cases (spec)
220 px column anchored right.
Notes for AI
- Import
LiquidDropsfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
LiquidDropsElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.