Skip to main content

Star Rating

Five stars. Each one spins in with a pop as the value reaches it, and tucks away when it drops.

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

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

Inputs

InputTypeDefaultRange
accentText#FF5A1Fhex colour
inkText#17171Chex colour
valueNumber30 – 5

Events (via onTrigger): value