{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "social57",
  "title": "Community Photo Wall",
  "description": "A community gallery laid out as a masonry of customer photographs at mixed heights, each captioned with what is happening and the practice it came from.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/social57/social57.tsx",
      "content": "\"use client\";\n\nimport { Badge23 } from \"@/components/beste/component/badge23\";\nimport { Button21 } from \"@/components/beste/component/button21\";\nimport { cn } from \"@/lib/utils\";\nimport Link from \"next/link\";\n\ninterface Badge {\n  label: string;\n}\n\ninterface ActionLink {\n  label: string;\n  href: string;\n}\n\ninterface Frame {\n  src: string;\n  alt: string;\n  caption: string;\n  place: string;\n  tall?: boolean;\n}\n\ninterface Social57Props {\n  badge?: Badge;\n  heading?: string;\n  description?: string;\n  frames?: Frame[];\n  closing?: string;\n  button?: ActionLink;\n  className?: string;\n}\n\nexport const social57Demo: Social57Props = {\n  badge: { label: \"In the wild\" },\n  heading: \"Photographs from rooms we did not decorate\",\n  description:\n    \"Sent in by practices, published with their permission. None of these were staged and none of them feature our logo on a wall.\",\n  frames: [\n    {\n      src: \"https://images.unsplash.com/photo-1782849324101-3ae636a0e270?q=80&w=2233&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"A healthcare professional smiling in a bright clinic\",\n      caption: \"Go-live morning, and nothing on fire\",\n      place: \"Bramble Health, Bristol\",\n      tall: true,\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1744349350577-af263c4c9039?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"Two colleagues talking in a clinic corridor\",\n      caption: \"The handover that used to be a phone call\",\n      place: \"Kingsway Clinic, Leeds\",\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1705599773422-c1066356f801?q=80&w=2316&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"A calculator and paperwork on a desk\",\n      caption: \"Month-end, closed before lunch\",\n      place: \"Harbour Practice, Southampton\",\n      tall: true,\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1678380003465-e8b1b9e3877c?q=80&w=2228&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"A small team talking around a laptop\",\n      caption: \"First multi-site roundtable, twelve chairs\",\n      place: \"Bristol\",\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1753631841572-126ae9d13234?q=80&w=2264&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"A clinician reviewing notes at a desk\",\n      caption: \"Notes written in the room, not after it\",\n      place: \"Kingsway Clinic, Leeds\",\n      tall: true,\n    },\n    {\n      src: \"https://images.unsplash.com/photo-1713813879455-aaab0cd2b904?q=80&w=2622&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"A tidy reception desk in soft light\",\n      caption: \"Half seven, before the first arrival\",\n      place: \"Bramble Health, Bristol\",\n    },\n  ],\n  closing:\n    \"Have one worth sending? We publish with a credit and never without asking, and we will take the photograph down the day you want it down.\",\n  button: { label: \"Send us a photograph\", href: \"https://beste.co\" },\n};\n\nexport function Social57({\n  badge,\n  heading,\n  description,\n  frames = [],\n  closing,\n  button,\n  className,\n}: Social57Props) {\n  return (\n    <section className={cn(\"bg-background py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-7xl px-4 md:px-6\">\n        {badge && <Badge23 label={badge.label} />}\n\n        <div className=\"mt-6 border-t border-border pt-8 md:pt-10\">\n          <div className=\"grid gap-6 md:grid-cols-2 md:gap-12\">\n            {heading && (\n              <h2 className=\"text-3xl font-light leading-[1.1] tracking-tight text-foreground md:text-5xl\">\n                {heading}\n              </h2>\n            )}\n            {description && (\n              <div className=\"flex md:justify-end\">\n                <p className=\"max-w-md text-base leading-relaxed text-muted-foreground\">\n                  {description}\n                </p>\n              </div>\n            )}\n          </div>\n        </div>\n\n        <div className=\"mt-12 columns-1 gap-4 sm:columns-2 md:mt-16 lg:columns-3\">\n          {frames.map((frame, index) => (\n            <figure key={index} className=\"mb-4 break-inside-avoid\">\n              <div\n                className={cn(\n                  \"relative w-full overflow-hidden rounded-md bg-muted\",\n                  frame.tall ? \"h-96\" : \"h-64\"\n                )}\n              >\n                <img\n                  className=\"absolute inset-0 size-full object-cover\"\n                  src={frame.src}\n                  alt={frame.alt}\n                />\n              </div>\n              <figcaption className=\"mt-3\">\n                <p className=\"text-base text-foreground\">{frame.caption}</p>\n                <p className=\"mt-1 text-sm text-muted-foreground\">{frame.place}</p>\n              </figcaption>\n            </figure>\n          ))}\n        </div>\n\n        <div className=\"mt-8 flex flex-col items-start gap-4 border-t border-border pt-8 md:flex-row md:items-center md:justify-between md:gap-8\">\n          {closing && (\n            <p className=\"max-w-xl text-base leading-relaxed text-muted-foreground\">{closing}</p>\n          )}\n          {button && (\n            <Button21 asChild label={button.label} tone=\"outline\">\n              <Link href={button.href} />\n            </Button21>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/social57.tsx"
    },
    {
      "path": "registry-components/badge23/badge23.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\n\ntype Tone = \"muted\" | \"foreground\" | \"primary\";\n\ninterface Badge23Props {\n  /** Eyebrow label */\n  label: string;\n  /** Text/border tone */\n  tone?: Tone;\n  /** Additional classes merged onto the root */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, string> = {\n  muted: \"border-border text-muted-foreground\",\n  foreground: \"border-foreground/30 text-foreground\",\n  primary: \"border-primary/40 text-primary\",\n};\n\nexport const badge23Demo: Badge23Props = {\n  label: \"Product\",\n};\n\nexport function Badge23({ label, tone = \"muted\", className }: Badge23Props) {\n  return (\n    <span\n      className={cn(\n        \"inline-flex items-center rounded-md border bg-transparent px-2.5 py-1 text-sm font-medium leading-none\",\n        toneStyles[tone],\n        className\n      )}\n    >\n      {label}\n    </span>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/badge23.tsx"
    },
    {
      "path": "registry-components/button21/button21.tsx",
      "content": "\"use client\";\n\nimport type { LucideIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\ntype Tone = \"primary\" | \"neutral\" | \"outline\";\n\ninterface Button21Props {\n  /** Button label */\n  label: string;\n  /**\n   * Compose the rendered element shadcn-style (radix asChild): your element\n   * (e.g. a router Link) becomes the root and the button content is injected\n   * as its children. Pass the element without children of its own.\n   */\n  asChild?: boolean;\n  /** The element to render when `asChild` is set (e.g. your framework's Link) */\n  children?: React.ReactElement;\n  /**\n   * Fallback link: renders a plain `<a>`. Prefer `asChild` with your\n   * framework's Link component for client-side navigation.\n   */\n  href?: string;\n  /** Optional trailing icon */\n  icon?: LucideIcon;\n  /** Surface tone: solid accent (default), soft neutral pill, or hairline outline */\n  tone?: Tone;\n  /** Click handler (used when there is no href and no asChild) */\n  onClick?: React.MouseEventHandler<HTMLButtonElement>;\n  /** Additional classes merged onto the button */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, string> = {\n  primary: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n  neutral: \"bg-muted text-foreground hover:bg-muted/70\",\n  outline: \"border border-border bg-transparent text-foreground hover:bg-muted\",\n};\n\nexport const button21Demo: Button21Props = {\n  label: \"Book a demo\",\n};\n\nexport function Button21({\n  label,\n  asChild = false,\n  children,\n  href,\n  icon: Icon,\n  tone = \"primary\",\n  onClick,\n  className,\n}: Button21Props) {\n  const classes = cn(\n    \"group/button21 h-auto w-fit gap-2 rounded-md px-5 py-2.5 text-sm font-medium tracking-tight transition-colors\",\n    toneStyles[tone],\n    className\n  );\n\n  const inner = (\n    <>\n      {label}\n      {Icon && (\n        <Icon className=\"size-4 transition-transform motion-safe:group-hover/button21:translate-x-0.5\" />\n      )}\n    </>\n  );\n\n  if (asChild && React.isValidElement(children)) {\n    return (\n      <Button asChild className={classes}>\n        {React.cloneElement(children, undefined, inner)}\n      </Button>\n    );\n  }\n\n  if (href) {\n    return (\n      <Button asChild className={classes}>\n        <a href={href}>{inner}</a>\n      </Button>\n    );\n  }\n\n  return (\n    <Button type=\"button\" className={classes} onClick={onClick}>\n      {inner}\n    </Button>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/button21.tsx"
    }
  ],
  "type": "registry:block"
}