{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "marker",
  "title": "Marker",
  "description": "Small status marker (dot, count or label) to annotate other elements.",
  "dependencies": [
    "@base-ui/react@^1.8.0",
    "class-variance-authority@^0.7.1"
  ],
  "files": [
    {
      "path": "registry/rapid/ui/marker/marker.tsx",
      "content": "import { mergeProps } from '@base-ui/react/merge-props'\nimport { useRender } from '@base-ui/react/use-render'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport type * as React from 'react'\nimport { cn } from '@/lib/utils'\n\nconst markerVariants = cva(\n\t\"group/marker relative flex min-h-4 w-full items-center gap-2 text-left text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: '',\n\t\t\t\tseparator:\n\t\t\t\t\t'before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border',\n\t\t\t\tborder: 'border-b border-border pb-2',\n\t\t\t},\n\t\t},\n\t},\n)\n\nfunction Marker({\n\tclassName,\n\tvariant = 'default',\n\trender,\n\t...props\n}: useRender.ComponentProps<'div'> & VariantProps<typeof markerVariants>) {\n\treturn useRender({\n\t\tdefaultTagName: 'div',\n\t\tprops: mergeProps<'div'>(\n\t\t\t{\n\t\t\t\tclassName: cn(markerVariants({ variant, className })),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'marker',\n\t\t\tvariant,\n\t\t},\n\t})\n}\n\nfunction MarkerIcon({ className, ...props }: React.ComponentProps<'span'>) {\n\treturn (\n\t\t<span\n\t\t\tdata-slot=\"marker-icon\"\n\t\t\taria-hidden=\"true\"\n\t\t\tclassName={cn(\"size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4\", className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction MarkerContent({ className, ...props }: React.ComponentProps<'span'>) {\n\treturn (\n\t\t<span\n\t\t\tdata-slot=\"marker-content\"\n\t\t\tclassName={cn(\n\t\t\t\t'min-w-0 wrap-break-word group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport { Marker, MarkerIcon, MarkerContent, markerVariants }\n",
      "type": "registry:ui",
      "target": "components/ui/marker.tsx"
    }
  ],
  "meta": {
    "new": true
  },
  "type": "registry:ui"
}