{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"cursor","type":"registry:ui","title":"cursor","description":"A cursor component, great for realtime interactive applications.","author":"Hayden Bleasel <hello@haydenbleasel.com>","dependencies":[],"devDependencies":[],"registryDependencies":[],"files":[{"type":"registry:ui","path":"index.tsx","content":"import { Children, type HTMLAttributes, type SVGProps } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport type CursorProps = HTMLAttributes<HTMLSpanElement>;\n\nexport const Cursor = ({ className, children, ...props }: CursorProps) => (\n  <span\n    className={cn(\"pointer-events-none relative select-none\", className)}\n    {...props}\n  >\n    {children}\n  </span>\n);\n\nexport type CursorPointerProps = SVGProps<SVGSVGElement>;\n\nexport const CursorPointer = ({ className, ...props }: CursorPointerProps) => (\n  <svg\n    aria-hidden=\"true\"\n    className={cn(\"size-3.5\", className)}\n    fill=\"none\"\n    focusable=\"false\"\n    height=\"20\"\n    viewBox=\"0 0 20 20\"\n    width=\"20\"\n    xmlns=\"http://www.w3.org/2000/svg\"\n    {...props}\n  >\n    <path\n      d=\"M19.438 6.716 1.115.05A.832.832 0 0 0 .05 1.116L6.712 19.45a.834.834 0 0 0 1.557.025l3.198-8 7.995-3.2a.833.833 0 0 0 0-1.559h-.024Z\"\n      fill=\"currentColor\"\n    />\n  </svg>\n);\n\nexport type CursorBodyProps = HTMLAttributes<HTMLSpanElement>;\n\nexport const CursorBody = ({\n  children,\n  className,\n  ...props\n}: CursorBodyProps) => (\n  <span\n    className={cn(\n      \"relative ml-3.5 flex flex-col whitespace-nowrap rounded-xl py-1 pr-3 pl-2.5 text-xs\",\n      Children.count(children) > 1 && \"rounded-tl [&>:first-child]:opacity-70\",\n      \"bg-secondary text-foreground\",\n      className\n    )}\n    {...props}\n  >\n    {children}\n  </span>\n);\n\nexport type CursorNameProps = HTMLAttributes<HTMLSpanElement>;\n\nexport const CursorName = (props: CursorNameProps) => <span {...props} />;\n\nexport type CursorMessageProps = HTMLAttributes<HTMLSpanElement>;\n\nexport const CursorMessage = (props: CursorMessageProps) => <span {...props} />;\n","target":"components/kibo-ui/cursor/index.tsx"}],"css":{}}