FavoriteButton
ShowcaseComponentsFavoriteButton
Actions

FavoriteButton.

A smooth animated heart with fill, soft burst, and accessible pressed state.

Real interactive component
Live demo

Tap the heart to favorite

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

8 props
ParameterTypeRequiredDefaultPossible valuesDescription
pressedbooleanNofalsetrue · falseControlled favorite state; fills the heart when true.
onPressedChange(pressed: boolean) => voidNo——Called when user activates the heart.
labelstringNoFavorite—Text/accessible name for the unselected state.
pressedLabelstringNoFavorited—Visible text for a selected favorite.
iconOnlybooleanNofalsetrue · falseHide visible text and use an accessible label.
countnumberNo——Optional count next to the heart.
size"sm" | "md" | "lg"Nomdsm · md · lgDimensions of the reaction control.
disabledbooleanNofalsetrue · falseDisable the favorite control.