Skip to content
Back

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

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

Terminal
oxyn add liquid-tabs

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

Four

Press a far tab: the pill springs there and a droplet trails behind, then is pulled back in.

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

Two

A two-way switch.

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

Five

Five tabs, extra goo.

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

LiquidTabs

PropTypeDefaultDescription
tabsVec<String>vec!["Chat".to_string(), "Agent".to_string(), "Plan".to_string(), "Code".to_string()]Tab labels.
default_valueusizeDefault::default()Starting tab.
goof326.0Goo strength (blur px).
on_changeEventHandler<usize>—The tab changed.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
←or→ · HomeorEndMove 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 LiquidTabs from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: LiquidTabsEl 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