Skip to main content

Copy Button

Tap it and the copy icon becomes a tick that draws itself, the label confirms, then both return.

  • 1.9 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';

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

Inputs

InputTypeDefaultRange
accentText#FF5A1Fhex colour
surfaceText#FFFFFFhex colour
inkText#17171Chex colour
labelTextTextCopy—
doneTextTextCopied—

Events (via onTrigger): press