{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/button-48","type":"registry:component","title":"Button 48","description":"Button with stitched border design using layered shadow effects","dependencies":["lucide-react","class-variance-authority"],"registryDependencies":["button","utils"],"files":[{"path":"src/registry/new-york/components/button/button-48.tsx","content":"import { MatterButton } from '@/registry/new-york/ui/matter-button'\n\nconst MatterButtonDemo = () => {\n  return <MatterButton>Matter Button</MatterButton>\n}\n\nexport default MatterButtonDemo\n","type":"registry:component","target":"components/shadcn-studio/button/button-48.tsx"},{"path":"src/registry/new-york/ui/matter-button.tsx","content":"'use client'\n\nimport * as React from 'react'\n\nimport type { VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/registry/new-york/lib/utils'\n\nimport { Button, type buttonVariants } from '@/registry/new-york/ui/button'\n\ninterface MatterButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n  size?: VariantProps<typeof buttonVariants>['size']\n  children: React.ReactNode\n  className?: string\n  asChild?: boolean\n}\n\nfunction MatterButton({ children, size, className, asChild = false, ...props }: MatterButtonProps) {\n  return (\n    <div\n      className={cn(\n        'bg-background relative inline-flex size-fit shrink-0 overflow-hidden rounded-full p-1 shadow-[inset_-0.5px_-0.5px_1px_0_rgba(0,0,0,0.6)] transition-shadow duration-500 has-hover:shadow-[inset_0_-2px_4px_0_rgba(0,0,0,0.6)] dark:shadow-[inset_-0.5px_-0.5px_1px_0_rgba(255,255,255,0.6)] dark:has-hover:shadow-[inset_0_-2px_4px_0_rgba(255,255,255,0.6)]',\n        className\n      )}\n    >\n      <Button\n        asChild={asChild}\n        size={size}\n        className={cn(\n          'relative overflow-hidden rounded-full bg-black text-white duration-500 hover:bg-black',\n\n          //Before\n          'before:absolute before:inset-0 before:block before:size-full before:rounded-full before:shadow-[inset_0_2px_4.5px_0px_rgba(255,255,255,0.6)] before:duration-300',\n\n          //Hover\n          'hover:shadow-[inset_0_-6px_8px_-1px_rgba(25,175,253,0.6)] dark:hover:shadow-[inset_0_-3px_2px_-1px_rgba(25,175,253,0.6)]',\n\n          size === 'lg' && 'text-base has-[>svg]:px-6'\n        )}\n        {...props}\n      >\n        {children}\n      </Button>\n    </div>\n  )\n}\n\nexport { MatterButton, type MatterButtonProps }\n","type":"registry:ui","target":"components/ui/matter-button.tsx"}]}