Button 25

PreviousNext

Notifications button with bell icon and red notification badge counter

Docs
shadcn-studiocomponent

Preview

Loading preview…
registry/new-york/components/button/button-25.tsx
import { BellIcon } from 'lucide-react'

import { Badge } from '@/registry/new-york/ui/badge'
import { Button } from '@/registry/new-york/ui/button'

const ButtonNotificationsBadgeDemo = () => {
  return (
    <Button variant='outline' className='relative'>
      <BellIcon />
      Notifications
      <Badge variant='destructive' className='absolute -top-2.5 -right-2.5 h-5 min-w-5 px-1 tabular-nums'>
        8
      </Badge>
    </Button>
  )
}

export default ButtonNotificationsBadgeDemo

Installation

npx shadcn@latest add @shadcn-studio/button-25

Usage

import { Button25 } from "@/components/button-25"
<Button25 />