LikeButton
UI display (experimental status).
Basic usage of LikeButton component.
Properties | Description | Type | Default |
---|---|---|---|
scale | The scale number, optional | number | 1 |
callback | The callback function, optional | () => void | - |
delay | The delay to trigger callback, unit ms | number | 500 |
heartColor | The heart color | string | #F66 |
lineColors | The line colors | string[] | ["#F66", "#66F", "#F90", "#09F", "#9C3", "#3C9"] |