Button 35

PreviousNext

Mail icon button with notification badge counter for unread messages

Docs
shadcn-studiocomponent

Preview

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

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

const IconButtonBadgeDemo = () => {
  return (
    <Button variant='outline' size='icon' className='relative'>
      <MailCheckIcon />
      <span className='sr-only'>Messages</span>
      <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 IconButtonBadgeDemo

Installation

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

Usage

import { Button35 } from "@/components/button-35"
<Button35 />