Componentform0.91 KB gzipZero dependencies

Wishlist Button

Heart wishlist button with pop fill and floating burst.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add wishlist-button

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { WishlistButton } from "@/components/ui/wishlist-button"; <WishlistButton />

Source code

wishlist-button.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxwishlist-button.tsx80 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface WishlistButtonProps extends Omit<React.HTMLAttributes<HTMLElement>, "onToggle"> {  active?: boolean;  onToggle?: (active: boolean) => void;  size?: "sm" | "md" | "lg";  className?: string;}  export function WishlistButton({  active = false,  onToggle,  size = "md",  className, ...props

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { WishlistButton } from "@/components/ui/wishlist-button"; <WishlistButton />
PropTypeDescription
activebooleanToggles active. (Default: false)
onToggle(active: boolean) => voidCallback invoked on toggle.
size"sm" | "md" | "lg"Component size preset. (Default: "md")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.