Star Button
Like/star toggle with a spring-scaled star, particle burst and live count.
Copy a prompt for your AI coding tool with the source, dependencies and usage
Props
StarButtonProps
Also accepts all props of Omit<React.ComponentProps<"button">, "onChange">
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultPressed | boolean | false | — |
| onPressedChange | (pressed: boolean) => void | — | — |
| count | number | 128 | Base count shown next to the star |
Install
$ npx shadcn@latest add https://chromotion.dev/r/star-button.json