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
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
| Input | Type | Default | Range |
|---|---|---|---|
accent | Text | #FF5A1F | hex colour |
ink | Text | #17171C | hex colour |
value | Number | 3 | 0 – 5 |
Events (via onTrigger): value