{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "surface",
  "type": "registry:ui",
  "title": "Surface",
  "description": "A card, borderless or subtle container styled with host app tokens.",
  "registryDependencies": [
    "https://mcpblocks.dev/r/host-tokens.json"
  ],
  "files": [
    {
      "path": "registry/mcpblocks/ui/surface.tsx",
      "content": "import { forwardRef, type ComponentPropsWithoutRef, type Ref } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype SurfaceProps = (ComponentPropsWithoutRef<\"div\"> & { as?: \"div\" } | ComponentPropsWithoutRef<\"section\"> & { as: \"section\" }) & {\n  variant?: \"card\" | \"borderless\" | \"subtle\"\n}\n\n/** A named host surface with optional card chrome. */\nexport const Surface = forwardRef<HTMLElement, SurfaceProps>(function Surface({ variant = \"card\", className, ...props }, ref) {\n  const styles = cn(\n    \"w-full text-host-app-fg font-[family-name:var(--font-sans)]\",\n    variant === \"card\" && \"rounded-host-xl border-[length:var(--border-width-regular,0.5px)] border-host-app-border-muted bg-host-app-surface\",\n    variant === \"subtle\" && \"rounded-host-xl bg-host-app-surface-subtle\",\n    className,\n  )\n  if (props.as === \"section\") {\n    const { as: Section, ...section } = props\n    return <Section ref={ref} data-slot=\"surface\" className={styles} {...section} />\n  }\n  const { as: Div = \"div\", ...div } = props\n  return <Div ref={ref as Ref<HTMLDivElement>} data-slot=\"surface\" className={styles} {...div} />\n})\n",
      "type": "registry:ui"
    }
  ]
}