Skip to main content

Like Button

A heart that fills with a pop and throws a ring of sparks. Tap again and it empties quietly.

  • 1.7 KB .bexode
  • 3 live inputs
  • Responsive fit Layout
Live runtime

Use it

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

import { ExodeUICanvas } from 'exodeui';

// like.bexode goes in /public (download it below)
export function Like() {
  return (
    <ExodeUICanvas
      src="/like.bexode"
      fit="Contain"
      autoPlay
      interactive
      onTrigger={(name) => {
        // fires: 'liked'
      }}
      style={{ width: '100%', height: 560 }}
    />
  );
}

Inputs

InputTypeDefaultRange
accentText#FF5A1Fhex colour
inkText#17171Chex colour
likedBooleanfalse—

Events (via onTrigger): liked