Skip to main content

Radio Group

Three options sharing one dot. The dot stretches as it travels to the option you pick.

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

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

Inputs

InputTypeDefaultRange
accentText#FF5A1Fhex colour
inkText#17171Chex colour
option1TextMonthly—
option2TextYearly—
option3TextLifetime—
selectedNumber00 – 2

Events (via onTrigger): selected