{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "label", "type": "registry:ui", "dependencies": [], "devDependencies": [], "registryDependencies": [], "files": [ { "path": "registry/new-york/ui/label.ripple", "content": "import type { Component } from 'ripple';\r\nimport { cn } from \"@/lib/utils\"\r\n\r\nexport component Label(props: { $children: Component, $class: string, $htmlFor: string }) {\r\n\t {\r\n // only prevent text selection if clicking inside the label itself\r\n const target = event.target;\r\n if (target.closest('button, input, select, textarea')) return;\r\n\r\n props.onMouseDown?.(event);\r\n // prevent text selection when double clicking label\r\n if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\r\n }}\r\n >\r\n if(props.$children) {\r\n \r\n }\r\n \r\n}\r\n", "type": "registry:ui" } ] }