{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero",
  "title": "Hero",
  "description": "A simple hero banner component",
  "files": [
    {
      "path": "registry/ui/hero.tsx",
      "content": "import type * as React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nfunction Hero({ className, ...props }: React.ComponentProps<\"section\">) {\n  return (\n    <section\n      data-slot=\"hero\"\n      className={cn(\"border-border border-b\", className)}\n      {...props}\n    />\n  );\n}\n\nfunction HeroContent({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"hero-content\"\n      className={cn(\n        \"container flex flex-col items-center py-20 text-center md:py-32\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\ntype HeroAlertProps =\n  | ({ href: string } & React.ComponentProps<\"a\">)\n  | ({ href?: undefined } & React.ComponentProps<\"span\">);\n\nconst heroAlertClassName =\n  \"mb-8 max-w-2xl w-fit border-y border-y-background/10 inline-flex shadow-xs shadow-inner items-center rounded-full ring ring-border bg-muted px-3 py-1.5 text-sm font-medium text-muted-foreground\";\n\nfunction HeroAlert(props: HeroAlertProps) {\n  if (\"href\" in props && props.href) {\n    const { href, className, ...anchorProps } = props;\n\n    return (\n      <a\n        data-slot=\"hero-alert\"\n        href={href}\n        className={cn(\n          heroAlertClassName,\n          \"transition-colors hover:bg-muted/80\",\n          className,\n        )}\n        {...anchorProps}\n      />\n    );\n  }\n\n  const { className, ...spanProps } = props;\n\n  return (\n    <span\n      data-slot=\"hero-alert\"\n      className={cn(heroAlertClassName, className)}\n      {...spanProps}\n    />\n  );\n}\n\nfunction HeroTitle({ className, ...props }: React.ComponentProps<\"h1\">) {\n  return (\n    <h1\n      data-slot=\"hero-title\"\n      className={cn(\n        \"mx-auto max-w-3xl pb-6 font-bold text-4xl tracking-tight md:text-5xl\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\nfunction HeroDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n  return (\n    <p\n      data-slot=\"hero-description\"\n      className={cn(\n        \"mx-auto mt-2 max-w-2xl text-base text-muted-foreground leading-relaxed md:text-lg\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\nfunction HeroActions({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"hero-actions\"\n      className={cn(\n        \"mt-6 flex flex-wrap items-center justify-center gap-3 sm:justify-start\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\nfunction Highlight({\n  className,\n  variant = \"default\",\n  ...props\n}: React.ComponentProps<\"span\"> & { variant?: \"default\" | \"ghost\" }) {\n  return (\n    <span\n      data-slot=\"highlight\"\n      className={cn(\n        variant === \"default\" && \"text-primary\",\n        variant === \"ghost\" &&\n          \"[@supports(-webkit-text-stroke:1px)]:[-webkit-text-fill-color:var(--color-background)] [@supports(-webkit-text-stroke:1px)]:[-webkit-text-stroke:1px_currentColor]\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n\nexport {\n  Hero,\n  HeroActions,\n  HeroAlert,\n  HeroContent,\n  HeroDescription,\n  HeroTitle,\n  Highlight,\n};\n",
      "type": "registry:ui",
      "target": "@ui/hero.tsx"
    }
  ],
  "type": "registry:ui"
}