{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "section-container",
  "title": "Section Container",
  "description": "A page-section wrapper that keeps widths, padding and headings consistent: an optional eyebrow, title and description, grid, dot or glow backgrounds that fade out at the edges, framed side rails with corner marks, and a gentle reveal as it scrolls in.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/section-container/section-container.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { motion, useInView, useReducedMotion } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport interface SectionContainerProps {\n  children?: React.ReactNode;\n  id?: string;\n  /** Small label above the title. */\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  align?: \"left\" | \"center\";\n  /** Content width: sm 640, md 880, lg 1120, xl 1280, full. */\n  size?: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\n  /** Vertical padding. */\n  spacing?: \"sm\" | \"md\" | \"lg\";\n  background?: \"none\" | \"subtle\" | \"grid\" | \"dots\" | \"glow\";\n  /** Thin side rails with + marks at the corners (the framed-grid look). */\n  framed?: boolean;\n  /** A hairline across the top of the section. */\n  divider?: boolean;\n  animateIn?: boolean;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { text: \"#F5F4F1\", muted: \"rgba(245,244,241,0.58)\", eyebrow: \"rgba(245,244,241,0.5)\", line: \"rgba(255,255,255,0.1)\", pattern: \"rgba(255,255,255,0.06)\", subtle: \"#0D0D0D\", glow: \"rgba(255,255,255,0.08)\", mark: \"rgba(255,255,255,0.35)\" },\n  light: { text: \"#0A0A0A\", muted: \"rgba(10,10,10,0.58)\", eyebrow: \"rgba(10,10,10,0.5)\", line: \"rgba(10,10,10,0.1)\", pattern: \"rgba(10,10,10,0.07)\", subtle: \"#F6F6F4\", glow: \"rgba(10,10,10,0.06)\", mark: \"rgba(10,10,10,0.35)\" },\n};\n\nconst WIDTHS = { sm: 640, md: 880, lg: 1120, xl: 1280, full: undefined };\nconst SPACING = { sm: \"48px\", md: \"clamp(56px, 8vw, 96px)\", lg: \"clamp(72px, 11vw, 140px)\" };\n\nfunction Plus({ className, color }: { className: string; color: string }) {\n  return (\n    <svg aria-hidden=\"true\" width=\"11\" height=\"11\" viewBox=\"0 0 11 11\" className={cn(\"absolute z-[1]\", className)}>\n      <path d=\"M5.5 0v11M0 5.5h11\" stroke={color} strokeWidth=\"1\" />\n    </svg>\n  );\n}\n\nexport function SectionContainer({\n  children,\n  id,\n  eyebrow = \"Why teams switch\",\n  title = \"Everything you need, nothing you don't\",\n  description = \"Sections share one width, one rhythm and one set of margins, so the page reads as a whole instead of a stack of blocks.\",\n  align = \"center\",\n  size = \"lg\",\n  spacing = \"md\",\n  background = \"grid\",\n  framed = true,\n  divider = true,\n  animateIn = true,\n  theme = \"dark\",\n  className,\n}: SectionContainerProps) {\n  const p = PALETTES[theme];\n  const reduce = Boolean(useReducedMotion());\n  const ref = React.useRef<HTMLElement>(null);\n  const inView = useInView(ref, { once: true, amount: 0.2 });\n  const show = !animateIn || reduce || inView;\n  const width = WIDTHS[size];\n  const centered = align === \"center\";\n  const titleId = React.useId();\n\n  const bg: React.CSSProperties =\n    background === \"grid\"\n      ? { backgroundImage: `linear-gradient(${p.pattern} 1px, transparent 1px), linear-gradient(90deg, ${p.pattern} 1px, transparent 1px)`, backgroundSize: \"48px 48px\", backgroundPosition: \"center top\", maskImage: \"radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%)\", WebkitMaskImage: \"radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%)\" }\n      : background === \"dots\"\n        ? { backgroundImage: `radial-gradient(${p.pattern} 1.2px, transparent 1.3px)`, backgroundSize: \"20px 20px\", maskImage: \"radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%)\", WebkitMaskImage: \"radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%)\" }\n        : background === \"glow\"\n          ? { backgroundImage: `radial-gradient(ellipse 60% 50% at 50% 0%, ${p.glow}, transparent 70%)` }\n          : {};\n\n  const rise = (delay: number) => ({\n    initial: animateIn && !reduce ? { opacity: 0, y: 14 } : false,\n    animate: show ? { opacity: 1, y: 0 } : undefined,\n    transition: { duration: 0.6, delay: reduce ? 0 : delay, ease: [0.22, 1, 0.36, 1] as const },\n  });\n\n  return (\n    <section ref={ref} id={id} aria-labelledby={title ? titleId : undefined} className={cn(\"relative w-full\", className)} style={{ background: background === \"subtle\" ? p.subtle : undefined, borderTop: divider ? `1px solid ${p.line}` : undefined, fontFamily: \"Inter, sans-serif\", color: p.text }}>\n      {background !== \"none\" && background !== \"subtle\" && <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\" style={bg} />}\n      <div className=\"relative mx-auto w-full\" style={{ maxWidth: width, padding: `${SPACING[spacing]} clamp(20px, 4vw, 40px)`, borderLeft: framed ? `1px solid ${p.line}` : undefined, borderRight: framed ? `1px solid ${p.line}` : undefined }}>\n        {framed && (\n          <>\n            <Plus className=\"-top-[6px] -left-[6px]\" color={p.mark} />\n            <Plus className=\"-top-[6px] -right-[6px]\" color={p.mark} />\n            <Plus className=\"-bottom-[6px] -left-[6px]\" color={p.mark} />\n            <Plus className=\"-right-[6px] -bottom-[6px]\" color={p.mark} />\n          </>\n        )}\n        {(eyebrow || title || description) && (\n          <header className={cn(\"flex flex-col\", centered ? \"mx-auto items-center text-center\" : \"items-start\")} style={{ gap: 12, maxWidth: 680, marginBottom: children ? \"clamp(32px, 5vw, 56px)\" : 0 }}>\n            {eyebrow && (\n              <motion.span className=\"font-mono text-[12px] tracking-[0.18em] uppercase\" style={{ color: p.eyebrow }} {...rise(0)}>\n                {eyebrow}\n              </motion.span>\n            )}\n            {title && (\n              <motion.h2 id={titleId} className=\"m-0 font-semibold tracking-[-0.03em]\" style={{ fontSize: \"clamp(26px, 3.6vw, 40px)\", lineHeight: 1.1, textWrap: \"balance\" }} {...rise(0.08)}>\n                {title}\n              </motion.h2>\n            )}\n            {description && (\n              <motion.p className=\"m-0 text-[15.5px] leading-relaxed\" style={{ color: p.muted, maxWidth: 560, textWrap: \"pretty\" }} {...rise(0.16)}>\n                {description}\n              </motion.p>\n            )}\n          </header>\n        )}\n        {children && <motion.div {...rise(0.24)}>{children}</motion.div>}\n      </div>\n    </section>\n  );\n}\n\nexport default SectionContainer;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}