Skip to main content

Toast

A toast that rises in with a small overshoot while its tick draws. Close it, or set open from your code.

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

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

Inputs

InputTypeDefaultRange
accentText#FF5A1Fhex colour
onAccentText#FFFFFFhex colour
surfaceText#FFFFFFhex colour
inkText#17171Chex colour
messageTextTextChanges saved—
openBooleantrue—

Events (via onTrigger): open