{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "divider",
  "type": "registry:ui",
  "title": "Divider",
  "description": "Divider is a thin separator line between content sections — horizontal or vertical, semantic or decorative.",
  "author": "Skrewww",
  "dependencies": [],
  "registryDependencies": [
    "@skrewww/foundation"
  ],
  "docs": "Host requirements (assumed already present, not installed by this command): react, react-dom.",
  "files": [
    {
      "path": "components/ui/Divider.tsx",
      "content": "/** @skrewww-component divider */\nimport { createElement, type HTMLAttributes } from \"react\";\nimport { cn } from \"@/lib/cn\";\nimport styles from \"@/components/ui/divider.module.css\";\n\nexport type DividerOrientation = \"horizontal\" | \"vertical\";\nexport type DividerVariant = \"thematic\" | \"decorative\" | \"structural\";\n\nexport type DividerProps = HTMLAttributes<HTMLElement> & {\n  orientation?: DividerOrientation;\n  variant?: DividerVariant;\n};\n\nexport function Divider({\n  orientation = \"horizontal\",\n  variant = \"thematic\",\n  className,\n  ...props\n}: DividerProps) {\n  const isVertical = orientation === \"vertical\";\n\n  if (variant === \"thematic\") {\n    return createElement(\"hr\", {\n      ...props,\n      className: cn(\n        styles.divider,\n        isVertical ? styles.vertical : styles.horizontal,\n        className,\n      ),\n      \"aria-orientation\": isVertical ? \"vertical\" : undefined,\n    });\n  }\n\n  if (variant === \"decorative\") {\n    return createElement(\"div\", {\n      ...props,\n      role: \"presentation\",\n      \"aria-hidden\": true,\n      className: cn(\n        styles.divider,\n        isVertical ? styles.vertical : styles.horizontal,\n        className,\n      ),\n    });\n  }\n\n  return createElement(\"div\", {\n    ...props,\n    role: \"separator\",\n    \"aria-orientation\": isVertical ? \"vertical\" : \"horizontal\",\n    className: cn(\n      styles.divider,\n      isVertical ? styles.vertical : styles.horizontal,\n      className,\n    ),\n  });\n}\n",
      "type": "registry:ui",
      "target": "~/components/ui/Divider.tsx"
    },
    {
      "path": "components/ui/divider.module.css",
      "content": ".divider {\n  flex-shrink: 0;\n  border: 0;\n  margin: 0;\n  background: var(--divider-color);\n}\n\n.horizontal {\n  width: 100%;\n  height: var(--divider-thickness);\n  margin-block: var(--divider-spacing-y);\n}\n\n.vertical {\n  width: var(--divider-thickness);\n  height: 100%;\n  min-height: var(--divider-vertical-min-height);\n  margin-inline: var(--divider-spacing-x);\n  align-self: stretch;\n}\n\n/* Divider geometry stays neutral across shape personalities */\n[data-skrewww-shape] .divider {\n  border-radius: 0;\n}\n\n[data-skrewww-shape=\"pill\"] .divider,\n[data-skrewww-shape=\"squircle\"] .divider {\n  border-radius: 0;\n}\n",
      "type": "registry:ui",
      "target": "~/components/ui/divider.module.css"
    },
    {
      "path": "lib/cn.ts",
      "content": "export function cn(...classes: Array<string | false | null | undefined>): string {\n  return classes.filter(Boolean).join(\" \");\n}\n",
      "type": "registry:lib",
      "target": "~/lib/cn.ts"
    }
  ]
}
