{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "separator",
  "title": "Separator",
  "description": "Separator for React and shadcn: a 1px divider, horizontal, vertical, inset or labelled like the \"or\" between sign-in methods.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "https://eased.dev/r/eased-tokens.json"
  ],
  "files": [
    {
      "path": "src/registry/eased/separator/separator.tsx",
      "content": "import { Separator as BaseSeparator } from \"@base-ui/react/separator\";\nimport type { ReactNode } from \"react\";\n\nexport type SeparatorProps = {\n  /** Default \"horizontal\". A vertical separator stretches to its row's height. */\n  orientation?: \"horizontal\" | \"vertical\";\n  /**\n   * subtle (default) between sections on a surface; default where the rule must read on a\n   * sunken or tinted fill (rule 18).\n   */\n  tone?: \"subtle\" | \"default\";\n  /**\n   * Inset from the leading edge, to line up with content that starts after an icon or avatar\n   * (a list's text column). A length such as \"2.5rem\" or a CSS variable. Horizontal only.\n   */\n  inset?: string;\n  /**\n   * Purely visual: hidden from assistive tech. Use it when spacing or a heading already\n   * separates the content; leave it off when the rule is the only thing marking a boundary.\n   */\n  decorative?: boolean;\n  /** A label in the middle of the rule, like the \"or\" between sign-in methods. Horizontal only. */\n  children?: ReactNode;\n  className?: string;\n};\n\nconst TONE = { subtle: \"bg-line-subtle\", default: \"bg-line\" } as const;\n\n/**\n * A 1px rule in Eased's line colours, horizontal or vertical, optionally inset to a content\n * column or labelled (\"or\"). Base UI's Separator supplies `role=\"separator\"` and\n * `aria-orientation`; decorative rules are hidden from assistive tech instead.\n */\nexport function Separator({ orientation = \"horizontal\", tone = \"subtle\", inset, decorative = false, children, className = \"\" }: SeparatorProps) {\n  const a11y = decorative ? { role: \"none\", \"aria-hidden\": true as const } : {};\n\n  if (orientation === \"vertical\") {\n    return <BaseSeparator orientation=\"vertical\" {...a11y} className={`w-px shrink-0 self-stretch ${TONE[tone]} ${className}`} />;\n  }\n\n  if (children != null) {\n    // A string label names the separator (\"or, separator\"); the visible copy is not read twice.\n    return (\n      <BaseSeparator\n        orientation=\"horizontal\"\n        aria-label={!decorative && typeof children === \"string\" ? children : undefined}\n        {...a11y}\n        className={`flex min-w-0 items-center gap-3 text-ui-xs text-text-muted ${className}`}\n      >\n        <span aria-hidden className={`h-px min-w-4 flex-1 ${TONE[tone]}`} />\n        <span aria-hidden={typeof children === \"string\" || undefined} className=\"shrink-0\">\n          {children}\n        </span>\n        <span aria-hidden className={`h-px min-w-4 flex-1 ${TONE[tone]}`} />\n      </BaseSeparator>\n    );\n  }\n\n  return (\n    <BaseSeparator\n      orientation=\"horizontal\"\n      {...a11y}\n      style={inset ? { marginInlineStart: inset } : undefined}\n      className={`h-px shrink-0 ${TONE[tone]} ${className}`}\n    />\n  );\n}\n",
      "type": "registry:ui",
      "target": "@components/eased/separator/separator.tsx"
    }
  ],
  "meta": {
    "details": "A 1px rule in Eased's line colours. Horizontal or vertical, inset to a content column, or labelled like the \"or\" between sign-in methods. Base UI Separator semantics, or decorative.",
    "industries": [
      "ai",
      "devtools",
      "finance",
      "crypto",
      "saas",
      "legal",
      "ecommerce",
      "real-estate",
      "health",
      "hr",
      "education",
      "travel",
      "media"
    ],
    "releaseAt": "2026-11-23"
  },
  "docs": "Import Separator from components/eased/separator/separator. Props: orientation, tone (subtle, default), inset, decorative, children (a label). The Eased tokens were merged into your global CSS; nothing to import.",
  "type": "registry:ui"
}