Skip to main content

Shadow Button

A tactile luxury button with multi-layer colored dynamic shadow casting, magnetic cursor tilt, and spring press physics.

  • 3.4 KB .bexode
  • 6 live inputs
  • Responsive fit Layout
Live runtime

Use it

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

import { ExodeUICanvas } from 'exodeui';

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

Inputs

InputTypeDefaultRange
labelTextGet Access—
badgeTextPRO—
accentText#8926f1hex colour
accent2Text#ff5e7ehex colour
textText#ffffffhex colour
bgText#0c0a12hex colour

Events (via onTrigger): click