Skip to main content

Magnetic Dock

A macOS-inspired liquid magnification dock with dynamic cosine-curve icon scaling, floor reflections, active status dots, and spring bouncing app launch physics.

  • 4.3 KB .bexode
  • 5 live inputs
  • Responsive fit Layout
Live runtime

Use it

The code follows your customizations. Install with npm i exodeui.

import { ExodeUICanvas } from 'exodeui';

// magnetic-dock.bexode goes in /public (download it below)
export function MagneticDock() {
  return (
    <ExodeUICanvas
      src="/magnetic-dock.bexode"
      fit="Layout"   // responsive: redraws at any container size
      autoPlay
      interactive
      onTrigger={(name) => {
        // fires: 'appLaunch'
      }}
      style={{ width: '100%', height: 360 }}
    />
  );
}

Inputs

InputTypeDefaultRange
magnificationNumber1.651.1 – 2.2
reachNumber13060 – 240
speedNumber10.1 – 3
accentText#6366f1hex colour
bgText#08080dhex colour

Events (via onTrigger): appLaunch