{
  "$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/types.ts",
      "content": "import { cva, type VariantProps } from 'class-variance-authority'\n\nexport const sectionVariants = cva(\"relative flex scroll-mt-12 flex-col gap-14 py-16 @container\", {\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,var(--container-7xl))-2rem)] overflow-hidden rounded-xl border shadow-md\",\n        },\n    },\n    defaultVariants: {\n        variant: 'default',\n    },\n})\n\nexport const sectionContainerVariants = cva(\n    '@container/section relative mx-auto w-full max-w-(--container,var(--container-7xl)) px-4',\n    {\n        variants: {\n            variant: {\n                default: 'flex flex-col items-center gap-8',\n                split: 'grid grid-cols-1 items-center gap-14 @2xl:grid-cols-[minmax(0,1fr)_minmax(0,1.15fr)]',\n                responsive:\n                    'flex flex-col items-baseline justify-between gap-6 @sm:flex-row',\n            },\n            order: {\n                default: '',\n                reverse: '*:first:order-last',\n            },\n        },\n        defaultVariants: {\n            variant: 'default',\n            order: 'default',\n        },\n    },\n)\n\nexport type SectionVariantProps = VariantProps<typeof sectionVariants>\n\ntype ContainerVariants = VariantProps<typeof sectionContainerVariants>\n\n/** Layout options for the content inside a section. */\nexport interface SectionContainerProps {\n    /** Stack the children, use two columns, or put them in a responsive row.\n     * @default 'default'\n     */\n    variant?: ContainerVariants['variant']\n    /** Move the first child to the last visual position with `reverse`.\n     * @default 'default'\n     */\n    order?: ContainerVariants['order']\n}\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/types.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'\n\nexport {\n    default as /** @deprecated Use SectionHeader instead. */ SectionHeading,\n} from './section-header.astro'\n\nexport { default as SectionHeader } from './section-header.astro'\nexport { default as SectionTitle } from './section-title.astro'\n\nexport type { SectionVariantProps, SectionContainerProps } from './types.ts'\nexport { sectionVariants, sectionContainerVariants } from './types.ts'\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\nimport {\n  sectionContainerVariants,\n  type SectionContainerProps,\n} from \"./types.ts\"\n\ntype Props = HTMLAttributes<\"div\"> & SectionContainerProps\n\nconst { class: className, variant, order, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"section-container\"\n  class={cn(sectionContainerVariants({ variant, order }), className)}\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-pretty\", 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-header.astro",
      "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props<Tag extends HTMLTag = \"header\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"header\", class: className, ...props } = Astro.props\n---\n\n<Tag\n  data-slot=\"section-heading\"\n  class={cn(\"w-full not-in-data-[variant=floating]:max-w-6xl not-in-data-[variant=floating]:mx-auto flex flex-col gap-3 @container/section-heading\", className)}\n  {...props}\n>\n  <slot />\n</Tag>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/section/section-header.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 \"./types.ts\"\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": {
    "themeVariableDescription": "Add these variables to your Tailwind theme for responsive section title sizing.",
    "requiredThemeVariables": [
      "text-section-title",
      "text-section-title--line-height"
    ],
    "framework": "astro",
    "source": "@gnostic/ui",
    "testedDependencies": {
      "class-variance-authority": "^0.7.1",
      "cn": "0.5.2"
    }
  },
  "docs": "https://gnosticai.com/ui/components/section",
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
