{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "section",
  "title": "Section",
  "description": "Astro section parts for page headings, content, and actions.",
  "dependencies": [
    "class-variance-authority",
    "cn"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "packages/ui/src/components/ui/section/section-variants.ts",
      "content": "import { cva, type VariantProps } from 'class-variance-authority'\nimport { cn } from 'cn'\n\nconst sectionStyles = cva(\"relative flex scroll-mt-12 flex-col gap-16 py-16\", {\n    variants: {\n        variant: {\n            default: 'bg-background w-full',\n            floating: \"bg-background mx-auto my-16 w-[calc(100%-2rem)] max-w-[calc(var(--container,1280px)-2rem)] overflow-hidden rounded-xl border shadow-md\",\n        },\n    },\n    defaultVariants: {\n        variant: 'default',\n    },\n})\n\nexport const sectionVariants = (...args: Parameters<typeof sectionStyles>) =>\n    cn(sectionStyles(...args))\n\nexport type SectionVariantProps = VariantProps<typeof sectionVariants>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/section-variants.ts"
    },
    {
      "path": "packages/ui/src/components/ui/section/index.ts",
      "content": "export { default as Section } from './section.astro'\nexport { default as SectionContainer } from './section-container.astro'\nexport { default as SectionDescription } from './section-description.astro'\nexport { default as SectionHeading } from './section-heading.astro'\nexport { default as SectionTitle } from './section-title.astro'\nexport { sectionVariants, type SectionVariantProps } from './section-variants'\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/index.ts"
    },
    {
      "path": "packages/ui/src/components/ui/section/section-container.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"section-container\"\n  class={cn(\n    \"relative mx-auto flex w-full max-w-7xl flex-col gap-8 px-4 @container/section\",\n    className,\n  )}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/section-container.astro"
    },
    {
      "path": "packages/ui/src/components/ui/section/section-description.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"p\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<p\n  data-slot=\"section-description\"\n  class={cn(\"text-muted-foreground text-lg leading-relaxed text-balance\", className)}\n  {...props}\n>\n  <slot />\n</p>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/section-description.astro"
    },
    {
      "path": "packages/ui/src/components/ui/section/section-heading.astro",
      "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n  data-slot=\"section-heading\"\n  class={cn(\"w-full @container/section-heading\", className)}\n  {...props}\n>\n  <slot />\n</Tag>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/section-heading.astro"
    },
    {
      "path": "packages/ui/src/components/ui/section/section-title.astro",
      "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props<Tag extends HTMLTag = \"h2\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"h2\", class: className, ...props } = Astro.props\n---\n\n<Tag\n  data-slot=\"section-title\"\n  class={cn(\"font-semibold tracking-tight text-balance text-section-title font-heading\", className)}\n  {...props}\n>\n  <slot />\n</Tag>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/section-title.astro"
    },
    {
      "path": "packages/ui/src/components/ui/section/section.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { sectionVariants, type SectionVariantProps } from \"./section-variants\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"section\"> & SectionVariantProps\n\nconst { class: className, variant, ...props } = Astro.props\n---\n\n<section\n  class={cn(sectionVariants({ variant }), className)}\n  data-slot=\"section\"\n  data-variant={variant}\n  {...props}\n>\n  <slot />\n</section>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/section.astro"
    }
  ],
  "meta": {
    "framework": "astro",
    "source": "@gnostic/ui",
    "testedDependencies": {
      "class-variance-authority": "^0.7.1",
      "cn": "0.5.2"
    }
  },
  "docs": "https://ui.gnosticai.com/components/section",
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
