Liquid tabsPro
An Oxyn original: a segmented control whose ink pill moves like a drop, trailing a droplet that is pulled back in when it lands.
oxyn add liquid-tabsThe 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 mode switch whose selection feels physical without being loud.
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 tabs 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-tabsUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Four
Press a far tab: the pill springs there and a droplet trails behind, then is pulled back in.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Two
A two-way switch.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Five
Five tabs, extra goo.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
LiquidTabs
| Prop | Type | Default | Description |
|---|---|---|---|
tabs | Vec<String> | vec!["Chat".to_string(), "Agent".to_string(), "Plan".to_string(), "Code".to_string()] | Tab labels. |
default_value | usize | Default::default() | Starting tab. |
goo | f32 | 6.0 | Goo strength (blur px). |
on_change | EventHandler<usize> | — | The tab changed. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ←or→ · HomeorEnd | Move between tabs (roving focus) |
Accessibility
- A tablist; the chosen tab has aria-selected and the only tab stop.
Responsive behaviour
- Tabs share the width; up to 360 px.
Edge cases (spec)
Up to 360 px; tabs share the width.
Notes for AI
- Import
LiquidTabsfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
LiquidTabsElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.