RUI.next

Experimental
LikeButton

LikeButton

LikeButton UI display (experimental status).

<LikeButton scale={0.5} />
<LikeButton scale={0.5} />

Example

Basic usage of LikeButton component.

LikeButton with Callback function (`RUI-log` in Console log)
Customize LikeButton

API

PropertiesDescriptionTypeDefault
scaleThe scale number, optionalnumber1
callbackThe callback function, optional() => void-
delayThe delay to trigger callback, unit msnumber500
heartColorThe heart colorstring#F66
lineColorsThe line colorsstring[]["#F66", "#66F", "#F90", "#09F", "#9C3", "#3C9"]