{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "button-43",
  "title": "Like button",
  "description": "An outline like button with its count behind a divider.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/motion-number.json",
    "https://ui.ndekocode.dev/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/button/button-43.tsx",
      "content": "'use client';\n\nimport { useState } from 'react';\n\nimport { MotionNumber } from '@/components/core/motion-number';\nimport { ThumbsUpIcon } from '@/registry/ndeko/lib/icons';\nimport { Button } from '@/registry/ndeko/ui/button';\n\nconst BASE_LIKES = 86;\n\nexport default function Button43() {\n  const [isLiked, setIsLiked] = useState(false);\n  const ownLike = Number(isLiked);\n  const likeCount = BASE_LIKES + ownLike;\n\n  function toggleLike() {\n    setIsLiked((current) => !current);\n  }\n\n  return (\n    <Button\n      variant='outline'\n      className='py-0 pe-0'\n      aria-pressed={isLiked}\n      onClick={toggleLike}\n    >\n      <ThumbsUpIcon className='group-aria-pressed/button:text-primary-ink opacity-60 transition-[opacity,color] duration-150 group-aria-pressed/button:opacity-100' />\n      Like\n      <span className='hairline-l border-foreground/12 text-muted-foreground dark:border-foreground/15 ms-1 inline-flex h-full items-center px-3 text-xs font-medium tabular-nums'>\n        <span className='flex' aria-hidden='true'>\n          <MotionNumber value={likeCount} />\n        </span>\n        <span className='sr-only'>{likeCount} likes</span>\n      </span>\n    </Button>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "button"
  ],
  "type": "registry:component"
}