ReactionButton
ShowcaseComponentsReactionButton
Actions

ReactionButton.

One shared icon reaction interaction for hearts, stars, and bookmarks.

Real interactive component
Live demo

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.

9 props
ParameterTypeRequiredDefaultPossible valuesDescription
kind"heart" | "star" | "bookmark"Noheartheart · star · bookmarkWhich shared Lucide reaction to show.
pressedbooleanNofalsetrue · falseControlled selected state; fills the icon when true.
onPressedChange(pressed: boolean) => voidNo——Called when user toggles the reaction.
labelstringNo——Unselected visible/accessible label.
pressedLabelstringNo——Selected visible label.
iconOnlybooleanNofalsetrue · falseIcon-only mode with accessible name.
countnumberNo——Optional count next to the icon.
size"sm" | "md" | "lg"Nomdsm · md · lgSize of the control.
disabledbooleanNofalsetrue · falseDisable interaction.