Skip to main content

Button

A button whose arrow leans in on hover and whose pill dips on press. Set loading and it folds into a spinner.

  • 1.8 KB .bexode
  • 4 live inputs
  • Responsive fit Layout
Live runtime

Use it

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

import { ExodeUICanvas } from 'exodeui';

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

Inputs

InputTypeDefaultRange
accentText#FF5A1Fhex colour
onAccentText#FFFFFFhex colour
labelTextTextContinue—
loadingBooleanfalse—

Events (via onTrigger): press