{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "day-separator",
  "title": "Day Separator",
  "description": "A heading between days that reads Today or Yesterday.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/react@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/react/day-separator.tsx",
      "content": "\"use client\";\n\nimport { daySeparatorPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/react/primitive\";\nimport type { ComponentProps } from \"react\";\n\nconst parts = createParts(daySeparatorPrimitive, { root: \"div\", label: \"time\" });\n\nexport type DaySeparatorProps = ComponentProps<typeof parts.Root>;\n\n/** A heading between days: the date on the server, and \"Today\", \"Yesterday\" or a weekday once in the browser. */\nexport function DaySeparator({ children = DEFAULT_LABEL, ...props }: DaySeparatorProps) {\n  return <parts.Root {...props}>{children}</parts.Root>;\n}\n\nexport type DaySeparatorLabelProps = ComponentProps<typeof parts.Label>;\n\n/** The day as a `<time datetime>`: its words, unless you pass children. */\nexport function DaySeparatorLabel({ children = ({ label }) => label, ...props }: DaySeparatorLabelProps) {\n  return <parts.Label {...props}>{children}</parts.Label>;\n}\n\nconst DEFAULT_LABEL = <DaySeparatorLabel />;\n",
      "type": "registry:ui",
      "target": "@ui/day-separator.tsx"
    }
  ],
  "meta": {
    "layer": "react"
  },
  "type": "registry:ui"
}
