Button 38

PreviousNext

Notification icon button with animated blue dot indicator

Docs
shadcn-studiocomponent

Preview

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

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

const IconButtonNotificationDotDemo = () => {
  return (
    <Button variant='outline' size='icon' className='relative'>
      <BellIcon />
      <span className='absolute -top-0.5 -right-0.5 size-2 animate-bounce rounded-full bg-sky-600 dark:bg-sky-400' />
      <span className='sr-only'>Notifications</span>
    </Button>
  )
}

export default IconButtonNotificationDotDemo

Installation

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

Usage

import { Button38 } from "@/components/button-38"
<Button38 />