Launch sale — 60% off Pro
Contact
Button GroupBadges

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Button Group - Like with Count

A like button with adjacent count display showing engagement metrics in social interfaces

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Social proof drives engagement—visible like counts encourage participation. This React component combines shadcn/ui's Button, ButtonGroup, and ButtonGroupText components with Lucide React's HeartIcon for social engagement controls with inline count displays. Built on Radix UI with variant switching between outline (unliked) and default (liked) states, filled icon using fill-current, and ButtonGroupText for adjacent count labels, the pattern delivers toggleable social actions with metric visibility. Perfect for social media feeds showing post engagement, content platforms displaying article appreciation, community forums indicating helpful responses, or any interface where social actions need visible metrics—button groups unify action and count, filled icons communicate active state, counts provide social proof.

1.2k
342
1.2k

Pattern created by @haydenbleasel

Installation

Questions you might have