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
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
| Input | Type | Default | Range |
|---|---|---|---|
accent | Text | #FF5A1F | hex colour |
onAccent | Text | #FFFFFF | hex colour |
surface | Text | #FFFFFF | hex colour |
ink | Text | #17171C | hex colour |
messageText | Text | Changes saved | — |
open | Boolean | true | — |
Events (via onTrigger): open