Skip to main content

Motion Switch

A settings switch whose knob stretches as it slides, with a small burst when it turns on.

  • 4.4 KB .bexode
  • 7 live inputs
  • Responsive fit Layout
Live runtime

Use it

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

import { ExodeUICanvas } from 'exodeui';

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

Inputs

InputTypeDefaultRange
checkedBooleantrue—
labelTextSync—
sublabelTextKeep your files up to date on every device—
speedNumber10.1 – 4
accentText#10b981hex colour
offColorText#272732hex colour
bgText#090a10hex colour

Events (via onTrigger): changeenableddisabled

ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →