{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "button",
  "title": "Button",
  "description": "A reusable button component.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/components/ui/button.tsx",
      "content": "import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/stories/lib/utils\";\n\nconst buttonVariants = cva(\n  \"p-3 rounded-sm inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:bg-[#F3F4F5] disabled:text-[#A6ADB5] disabled:border-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive rounded-sm w-full sm:w-auto\",\n  {\n    variants: {\n      variant: {\n        primary:\n          \"bg-primary text-primary-foreground hover:bg-primary/90 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/90 focus:outline-3 focus:outline-offset-0 focus:outline-primary\",\n        tertiary:\n          \"bg-tertiary text-tertiary-foreground hover:bg-tertiary/90 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n        accent1:\n          \"bg-accent1 text-accent1-foreground hover:bg-accent1/90 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n        accent2:\n          \"bg-accent2 text-accent2-foreground hover:bg-accent2/90 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n        success:\n          \"bg-success text-success-foreground hover:bg-success/90 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n        warning:\n          \"bg-warning text-warning-foreground hover:bg-warning/90 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n        error:\n          \"bg-error text-error-foreground hover:bg-error/90 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n        white:\n          \"bg-white text-black hover:bg-gray-200 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n        black:\n          \"bg-black text-white hover:bg-gray-900 focus:outline-3 focus:outline-offset-0 focus:outline-secondary\",\n      },\n      size: {\n        micro: \"h-6\",\n        xs: \"h-7 \",\n        sm: \"h-9 \",\n        md: \"h-11 \",\n        lg: \"h-12 \",\n        xl: \"h-14 \",\n      },\n      stylebtn: {\n        filled: \"\",\n        outlined: \"bg-transparent border bg-transparent hover:bg-transparent\",\n        text: \"bg-transparent border-0 hover:underline hover:bg-transparent\",\n      },\n    },\n    compoundVariants: [\n      {\n        stylebtn: \"outlined\",\n        variant: \"primary\",\n        className:\n          \"text-primary border-primary hover:border-primary/80 hover:text-primary/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"secondary\",\n        className:\n          \"text-secondary border-secondary hover:border-secondary/80 hover:text-secondary/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"tertiary\",\n        className:\n          \"text-tertiary border-tertiary hover:border-tertiary/80 hover:text-tertiary/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"accent1\",\n        className:\n          \"text-accent1 border-accent1 hover:border-accent1/80 hover:text-accent1/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"accent2\",\n        className:\n          \"text-accent2 border-accent2 hover:border-accent2/80 hover:text-accent2/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"success\",\n        className:\n          \"text-success border-success hover:border--success/80 hover:text-success/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"warning\",\n        className:\n          \"text-warning border-warning hover:border-warning/80 hover:text-warning/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"error\",\n        className:\n          \"text-error border-error hover:border-error/80 hover:text-error/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"white\",\n        className:\n          \"text-white border-white hover:border-gray-200/80 hover:text-gray-200/80\",\n      },\n      {\n        stylebtn: \"outlined\",\n        variant: \"black\",\n        className:\n          \"text-black border-black hover:border-gray-900/50 hover:text-gray-900/50\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"primary\",\n        className: \"text-primary hover:text-primary/80 \",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"secondary\",\n        className: \"text-secondary hover:text-secondary/80\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"tertiary\",\n        className: \"text-tertiary hover:text-tertiary/80\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"accent1\",\n        className: \"text-accent1 hover:text-accent1/80\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"accent2\",\n        className: \"text-accent2 hover:text-accent2/80\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"success\",\n        className: \"text-success hover:text-success/80\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"warning\",\n        className: \"text-warning hover:text-warning/80\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"error\",\n        className: \"text-error hover:text-error/80\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"white\",\n        className: \"text-white hover:text-gray-200/80\",\n      },\n      {\n        stylebtn: \"text\",\n        variant: \"black\",\n        className: \"text-black hover:text-gray-900/50\",\n      },\n    ],\n    defaultVariants: {\n      variant: \"primary\",\n      size: \"md\",\n      stylebtn: \"filled\",\n    },\n  },\n);\n\ninterface ButtonProps\n  extends\n    React.ButtonHTMLAttributes<HTMLButtonElement>,\n    VariantProps<typeof buttonVariants> {\n  asChild?: boolean;\n  iconBefore?: React.ReactNode;\n  iconAfter?: React.ReactNode;\n  label?: string;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n  (\n    {\n      className,\n      variant,\n      size,\n      stylebtn,\n      asChild = false,\n      iconBefore,\n      iconAfter,\n      children,\n      label,\n      ...props\n    },\n    ref,\n  ) => {\n    const Comp = asChild ? Slot : \"button\";\n\n    return (\n      <Comp\n        ref={ref}\n        data-slot=\"button\"\n        className={cn(buttonVariants({ stylebtn, size, variant, className }))}\n        {...props}\n      >\n        {iconBefore && <span className=\"flex items-center\">{iconBefore}</span>}\n        {children}\n        {label}\n        {iconAfter && <span className=\"flex items-center\">{iconAfter}</span>}\n      </Comp>\n    );\n  },\n);\n\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n",
      "type": "registry:ui",
      "target": "components/ui/button.tsx"
    }
  ],
  "type": "registry:ui"
}