{
  "name": "app-invite",
  "type": "registry:ui",
  "framework": "react",
  "title": "App Invite",
  "description": "The app directory card a link to an app unfurls into inside a message: cover banner, icon, name and a call to action.",
  "registryDependencies": [
    "@newtui/button"
  ],
  "files": [
    {
      "path": "ui/app-invite.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/* The app directory card a link to an app unfurls into inside a message. */\nconst AppInvite = React.forwardRef<\n  HTMLElement,\n  React.HTMLAttributes<HTMLElement>\n>(({ className, ...props }, ref) => (\n  <article\n    ref={ref}\n    className={cn(\n      \"flex max-w-[432px] flex-col overflow-hidden rounded-[var(--newt-radius-lg)] bg-newt-bg-surface text-newt-text-primary\",\n      className\n    )}\n    {...props}\n  />\n))\nAppInvite.displayName = \"AppInvite\"\n\nconst AppInviteBanner = React.forwardRef<\n  HTMLImageElement,\n  React.ComponentProps<\"img\">\n>(({ className, alt = \"\", ...props }, ref) => (\n  <img\n    ref={ref}\n    alt={alt}\n    aria-hidden={alt === \"\" ? true : undefined}\n    className={cn(\n      \"block aspect-[3/1] w-full bg-newt-bg-base object-cover\",\n      className\n    )}\n    {...props}\n  />\n))\nAppInviteBanner.displayName = \"AppInviteBanner\"\n\nconst AppInviteBody = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex flex-col gap-4 p-4\", className)}\n    {...props}\n  />\n))\nAppInviteBody.displayName = \"AppInviteBody\"\n\nconst AppInviteHeader = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex items-center gap-4\", className)}\n    {...props}\n  />\n))\nAppInviteHeader.displayName = \"AppInviteHeader\"\n\nconst AppInviteIcon = React.forwardRef<\n  HTMLImageElement,\n  React.ComponentProps<\"img\">\n>(({ className, alt = \"\", ...props }, ref) => (\n  <img\n    ref={ref}\n    alt={alt}\n    aria-hidden={alt === \"\" ? true : undefined}\n    className={cn(\n      \"h-20 w-20 shrink-0 rounded-[var(--newt-radius-lg)] bg-newt-bg-base object-cover\",\n      className\n    )}\n    {...props}\n  />\n))\nAppInviteIcon.displayName = \"AppInviteIcon\"\n\nconst AppInviteInfo = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"min-w-0 flex-1\", className)} {...props} />\n))\nAppInviteInfo.displayName = \"AppInviteInfo\"\n\nexport interface AppInviteNameProps extends React.HTMLAttributes<HTMLElement> {\n  /** Link to the app's page. Without it the name renders as plain text. */\n  href?: string\n}\n\nconst AppInviteName = React.forwardRef<HTMLElement, AppInviteNameProps>(\n  ({ className, href, ...props }, ref) =>\n    /* A link only when there is somewhere to go; plain text otherwise. */\n    React.createElement(href === undefined ? \"span\" : \"a\", {\n      ref,\n      href,\n      className: cn(\n        \"block truncate text-base font-bold text-newt-text-primary no-underline\",\n        href !== undefined && \"hover:underline\",\n        className\n      ),\n      ...props,\n    })\n)\nAppInviteName.displayName = \"AppInviteName\"\n\nconst AppInviteDescription = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n  <p\n    ref={ref}\n    className={cn(\n      \"mt-1 line-clamp-2 text-sm text-newt-text-secondary\",\n      className\n    )}\n    {...props}\n  />\n))\nAppInviteDescription.displayName = \"AppInviteDescription\"\n\nexport {\n  AppInvite,\n  AppInviteBanner,\n  AppInviteBody,\n  AppInviteHeader,\n  AppInviteIcon,\n  AppInviteInfo,\n  AppInviteName,\n  AppInviteDescription,\n}\n",
      "type": "registry:ui"
    }
  ]
}