{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"shadcn-studio/button-51","type":"registry:component","title":"Button 51","description":"Button with stitched border design using layered shadow effects","dependencies":["class-variance-authority"],"registryDependencies":["button","utils"],"files":[{"path":"src/registry/new-york/components/button/button-51.tsx","content":"import { PrimaryFlowButton } from '@/registry/new-york/ui/flow-button'\n\nconst PrimaryFlowButtonDemo = () => {\n  return <PrimaryFlowButton>Flow Button</PrimaryFlowButton>\n}\n\nexport default PrimaryFlowButtonDemo\n","type":"registry:component","target":"components/shadcn-studio/button/button-51.tsx"},{"path":"src/registry/new-york/ui/flow-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 FlowButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n  size?: VariantProps<typeof buttonVariants>['size']\n  children: React.ReactNode\n  className?: string\n  asChild?: boolean\n}\n\nfunction PrimaryFlowButton({ children, size, asChild = false, className, ...props }: FlowButtonProps) {\n  return (\n    <div className={cn('ring-primary/60 relative isolate w-fit overflow-hidden rounded-lg ring-2', className)}>\n      <Button\n        size={size}\n        asChild={asChild}\n        className={cn(\n          'hover:bg-primary relative rounded-lg border border-transparent bg-clip-padding duration-500 text-shadow-xs',\n          size === 'lg' && 'text-base has-[>svg]:px-6',\n\n          // After - Border gradient effect with rotation\n          'after:absolute after:-inset-30 after:-z-1 after:rounded-[inherit] after:border after:border-inherit after:bg-origin-border after:mask-exclude after:transition-transform after:duration-500',\n\n          'after:bg-[conic-gradient(from_90deg_at_50%_50%,var(--primary),var(--primary)_50%,rgba(0,0,0,15%)_51%_99%,var(--primary))] hover:after:rotate-180 dark:after:bg-[conic-gradient(from_90deg_at_50%_50%,var(--primary),var(--primary)_50%,rgba(0,0,0,30%)_51%_99%,var(--primary))]'\n        )}\n        {...props}\n      >\n        {children}\n      </Button>\n    </div>\n  )\n}\n\nfunction SecondaryFlowButton({ children, size, asChild = false, className, ...props }: FlowButtonProps) {\n  return (\n    <div className={cn('ring-secondary/60 relative isolate w-fit overflow-hidden rounded-lg ring-2', className)}>\n      <Button\n        size={size}\n        variant='secondary'\n        asChild={asChild}\n        className={cn(\n          'hover:bg-secondary relative rounded-lg border border-transparent bg-clip-padding duration-500 text-shadow-xs',\n          size === 'lg' && 'text-base has-[>svg]:px-6',\n\n          // After - Border gradient effect with rotation\n          'after:absolute after:-inset-30 after:-z-1 after:rounded-[inherit] after:border after:border-inherit after:bg-origin-border after:mask-exclude after:mask-clip-content after:transition-transform after:duration-500 after:[mask:linear-gradient(black,black),linear-gradient(black,black)]',\n\n          'after:bg-[conic-gradient(from_90deg_at_50%_50%,var(--secondary),var(--secondary)_50%,rgba(0,0,0,15%)_51%_99%,var(--secondary))] hover:after:rotate-180 dark:after:bg-[conic-gradient(from_90deg_at_50%_50%,var(--secondary),var(--secondary)_50%,rgba(255,255,255,60%)_51%_99%,var(--secondary))]'\n        )}\n        {...props}\n      >\n        {children}\n      </Button>\n    </div>\n  )\n}\n\nexport { PrimaryFlowButton, SecondaryFlowButton, type FlowButtonProps }\n","type":"registry:ui","target":"components/ui/flow-button.tsx"}]}