Gooey Menu
Install the component, then paste your configured usage. Your settings are included in the code below.
npx arclen-ui add gooey-menu --settings eyJkaXJlY3Rpb24iOiJmYW4iLCJpbml0aWFsT3BlbiI6ZmFsc2UsIml0ZW1MYWJlbHMiOlsiQWJvdXQiLCJCbG9nIiwiV29ya3MiLCJDb250YWN0Il0sImNsb3NlT25TZWxlY3QiOnRydWUsInRoZW1lIjoiYXV0byIsInN1cmZhY2VDb2xvciI6IiMxODE4MTgiLCJpY29uQ29sb3IiOiIjZmZmZmZmIiwibGFiZWxDb2xvciI6IiNmNWY1ZjUiLCJpY29uU2l6ZSI6MjIsInNob3dPcmJpdCI6dHJ1ZSwib3BlbkR1cmF0aW9uIjozNTAsImNsb3NlRHVyYXRpb24iOjI1MCwic3RhZ2dlciI6NDAsIm9wZW5MYWJlbCI6Ik9wZW4gbWVudSIsImNsb3NlTGFiZWwiOiJDbG9zZSBtZW51In0import { GooeyMenu } from "@/components/gooey-menu";
export default function Example() {
return <GooeyMenu {...{
"direction": "fan",
"initialOpen": false,
"itemLabels": [
"About",
"Blog",
"Works",
"Contact"
],
"closeOnSelect": true,
"theme": "auto",
"surfaceColor": "#181818",
"iconColor": "#ffffff",
"labelColor": "#f5f5f5",
"iconSize": 22,
"showOrbit": true,
"openDuration": 350,
"closeDuration": 250,
"stagger": 40,
"openLabel": "Open menu",
"closeLabel": "Close menu"
}} />;
}| Property | Type | Default |
|---|---|---|
directionLayout Options: fan, orbit, dock, rail | select | "fan" |
initialOpenInitially open | boolean | false |
itemLabelsAction labels Minimum 4 itemsMaximum 4 itemsUp to 40 characters per item | string-list | ["About","Blog","Works","Contact"] |
closeOnSelectClose after selection | boolean | true |
themePalette Options: auto, light, dark, custom | select | "auto" |
surfaceColorCustom surface Used when Palette is custom. | color | "#ffffff" |
iconColorCustom icons Used when Palette is custom. | color | "#000000" |
labelColorCustom labels and focus Used when Palette is custom. | color | "#111111" |
iconSizeIcon size 18–28Step 1 | number | 22 |
showOrbitOrbit guide Visible in the Orbit layout. | boolean | true |
openDurationOpening duration 150–700Step 10 | number | 350 |
closeDurationClosing duration 100–500Step 10 | number | 250 |
staggerAction stagger 0–80Step 5 | number | 40 |
openLabelOpen button label Up to 60 characters | text | "Open menu" |
closeLabelClose button label Up to 60 characters | text | "Close menu" |
Gooey Menu
Four action launchers share liquid surfaces. Fan spreads downward, Orbit opens at four compass points, Dock lifts into a toolbar, and Rail keeps the labels inside its pills.
import { GooeyMenu } from './gooey-menu/src/react';
<GooeyMenu
direction="orbit"
itemLabels={['Profile', 'Journal', 'Projects', 'Contact']}
onSelect={({ index, label }) => console.log(index, label)}
/>The React wrapper accepts every setting plus className, style, paused, onSelect and onOpenChange. The core and downloaded HTML use the same settings. Selection reports an action; wire the callback to your application to navigate or open content.
import { mount } from './gooey-menu/src/core';
import './gooey-menu/src/styles.css';
const menu = mount(host, { direction: 'dock', closeOnSelect: true });
host.addEventListener('gooey-select', event => {
console.log((event as CustomEvent).detail); // { index, label }
});
menu.update({ direction: 'rail' });
menu.pause();
menu.resume();
menu.destroy();update replaces the configuration and preserves open state unless initialOpen changes. It restores keyboard focus after changing a layout or label. gooey-toggle bubbles with { open }. Each instance owns its events and filter IDs. destroy() removes its listeners, timer, observer and markup and is safe to repeat. Remove any application event listeners you add when your host is discarded.
Reserve at least 320 by 340 pixels around a centered menu and keep overflow visible. The component's anchor is 112 by 112 pixels; actions extend beyond it. Button geometry stays fixed so the four layouts retain comfortable 48–64 pixel targets. Labels are limited to four entries and 40 characters each; short names work best in the compact Rail layout. The button's accessible name retains the full bounded label when visible text is shortened.
Palette auto follows a parent data-theme="dark" or .dark; light mode is the default. Choose light or dark to override it. The three custom colors apply only with Palette set to custom. The orbit guide applies only to Orbit. Icon size changes the glyph inside each fixed button. Opening duration, closing duration and stagger change action travel; the close dip and hamburger have their own short, fixed choreography.
Native buttons support Enter and Space. Arrow keys traverse actions; Home and End choose the first and last. Escape closes and returns focus. Closed actions leave the tab order and accessibility tree. Reduced motion and suspension settle transitions immediately. Hidden documents and offscreen hosts stop the close timer; there is no background animation loop. Without JavaScript, render() supplies a static composition; action behavior requires mounting the controller.
The four functional outline icons are Iconsax Linear by Vuesax / Lusaxweb, from Iconsax. They retain their separate terms in assets/ICONSAX-LICENSE.md; the component MIT licence does not relicense those glyphs. Keep that notice with all distributions. No remote fonts or scripts are required.
The preview runs the component’s own JavaScript. It respects reduced motion and pauses when off screen. The HTML bundle includes a static fallback.
Every setting in this panel comes from the component manifest. Preview size, pause and replay stay in the inspector.