{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "section",
  "title": "Section",
  "description": "A full-width page band with background and padding variants.",
  "dependencies": [
    "class-variance-authority@^0.7.1"
  ],
  "registryDependencies": [
    "@khaeli/utils"
  ],
  "files": [
    {
      "path": "registry/khaeli/ui/section.tsx",
      "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst sectionVariants = cva(\"w-full\", {\n  variants: {\n    background: {\n      dark: \"bg-foreground text-background\",\n      light: \"bg-background\",\n      muted: \"bg-muted\",\n      transparent: \"bg-transparent\",\n    },\n    padding: {\n      default: \"py-16 lg:py-24\",\n      large: \"py-24 lg:py-40\",\n      small: \"py-10 lg:py-16\",\n      none: \"py-0\",\n    },\n    bordered: {\n      true: \"border-y border-border\",\n      false: \"\",\n    },\n  },\n  defaultVariants: {\n    background: \"transparent\",\n    padding: \"default\",\n    bordered: false,\n  },\n})\n\ntype SectionElement =\n  | \"section\"\n  | \"div\"\n  | \"article\"\n  | \"main\"\n  | \"aside\"\n  | \"footer\"\n  | \"header\"\n  | \"nav\"\n\ninterface SectionProps\n  extends React.HTMLAttributes<HTMLElement>,\n    VariantProps<typeof sectionVariants> {\n  as?: SectionElement\n}\n\nfunction Section({\n  className,\n  as,\n  background,\n  padding,\n  bordered,\n  children,\n  ...rest\n}: SectionProps) {\n  const Comp = (as ?? \"section\") as React.ElementType\n\n  return (\n    <Comp\n      data-slot=\"section\"\n      className={cn(sectionVariants({ background, padding, bordered }), className)}\n      {...rest}\n    >\n      {children}\n    </Comp>\n  )\n}\n\nexport { Section, sectionVariants }\n",
      "type": "registry:ui"
    }
  ],
  "docs": "Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.",
  "type": "registry:ui"
}