{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "unread-dot",
  "title": "UnreadDot",
  "description": "The dot that marks something unread: a small round dot in the theme's primary color, with a spoken label.",
  "registryDependencies": [
    "@ouro/lib-cn"
  ],
  "files": [
    {
      "path": "registry/ouro/components/ouro/unread-dot/unread-dot.tsx",
      "content": "\"use client\";\n\nimport type { HTMLAttributes, JSX } from \"react\";\nimport { cn } from \"@/registry/ouro/lib/ouro/cn\";\n\n/** The props UnreadDot adds to the `<span>` attributes it passes through. */\nexport interface UnreadDotOwnProps {\n  /** What screen readers hear for the dot, such as \"Unread\". A required prop. */\n  label: string;\n  /** Draws the dot. Pass `false` where a mark takes the dot's place: screen readers still hear `label`, and nothing is drawn. @default true */\n  dot?: boolean | undefined;\n}\n\n/** Props for {@link UnreadDot}: its own props and the `<span>` attributes it passes through. */\nexport type UnreadDotProps = Omit<HTMLAttributes<HTMLSpanElement>, keyof UnreadDotOwnProps> & UnreadDotOwnProps;\n\n/**\n * The dot that marks something unread: a small round dot in the theme's primary color, with a spoken label.\n * ConversationList and Command draw it for their unread rows; use it for an unread mark of your own, such as\n * a chat row's mark slot.\n *\n * Use `Avatar`'s `presence` instead when the dot says whether a person is online, and `Badge` for a count.\n *\n * @group Display\n * @see https://ui.ouroboros.bot/docs/unread-dot\n *\n * @example\n * <UnreadDot label=\"Unread\" />\n */\nexport function UnreadDot(props: UnreadDotProps): JSX.Element {\n  const { label, dot = true, className, ...rest } = props;\n  // Without its dot it is only words for screen readers, out of the line's flow, so it adds no gap.\n  if (!dot)\n    return (\n      <span {...rest} data-ouro=\"unread-dot\" className=\"sr-only\">\n        {label}\n      </span>\n    );\n  return (\n    <span {...rest} data-ouro=\"unread-dot\" className={cn(\"flex shrink-0 items-center\", className)}>\n      <span aria-hidden=\"true\" className=\"size-2 rounded-full bg-primary\" />\n      <span className=\"sr-only\">{label}</span>\n    </span>\n  );\n}\n",
      "type": "registry:ui",
      "target": "@components/ouro/unread-dot/unread-dot.tsx"
    }
  ],
  "docs": "The dot that marks something unread: a small round dot in the theme's primary color, with a spoken label. Import: import { UnreadDot } from \"@/components/ouro/unread-dot/unread-dot\", with @/components replaced by your components alias (aliases.components in components.json, such as ~/components). Also installed: the helpers it imports in lib/ouro. Needs ouro-base in your stylesheet: add that item once per app, from the same place as this one, if you have not. Docs: https://ui.ouroboros.bot/docs/unread-dot.md Ouro UI v1.3.257.",
  "type": "registry:ui"
}