Skip to Content
Kokonut UI

BT-11Buttons

Bell Button

A subscribe button whose bell swings and rings, with a clapper that really strikes.

Install with
no extra packages

PROPay Button and more like it are in Kokonut UI Pro

Installation

Bell Button is a free, open-source React component in the Kokonut UI Buttons collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/bell-button.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/bell-button

Usage

import BellButton from "@/components/kokonutui/bell-button";

export default function Example() {
  return <BellButton />;
}

Props

variant
"default" | "compact" | "icon"Default "default"

default shows the label and count, compact the label, icon the bell alone.

subscribed
boolean

Controlled state.

defaultSubscribed
booleanDefault false
onSubscribedChange
(subscribed: boolean) => void
count
numberDefault 1284

Subscribers, not counting this one.

label
stringDefault "Notify me"
subscribedLabel
stringDefault "Subscribed"
className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.