Like Button
A heart that fills with a pop and throws a ring of sparks. Tap again and it empties quietly.
- 1.7 KB .bexode
- 3 live inputs
- Responsive fit Layout
Use it
The code follows your customizations. Install with npm i exodeui.
import { ExodeUICanvas } from 'exodeui';
// like.bexode goes in /public (download it below)
export function Like() {
return (
<ExodeUICanvas
src="/like.bexode"
fit="Contain"
autoPlay
interactive
onTrigger={(name) => {
// fires: 'liked'
}}
style={{ width: '100%', height: 560 }}
/>
);
}Inputs
| Input | Type | Default | Range |
|---|---|---|---|
accent | Text | #FF5A1F | hex colour |
ink | Text | #17171C | hex colour |
liked | Boolean | false | — |
Events (via onTrigger): liked