Atelier UI

Search components…

Search components…

Like Button

Like button with heart pop, particle burst and live count; exposes aria-pressed.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

LikeButtonProps

Also accepts all props of Omit<React.ComponentProps<"button">, "onChange" | "defaultValue">

PropTypeDefaultDescription
countnumber128—
defaultLikedbooleanfalse—
onLikedChange(liked: boolean) => void——

Install

$ npx shadcn@latest add https://chromotion.dev/r/like-button.json

More like this