{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "loader-line-reveal",
  "type": "registry:component",
  "title": "Loader Line Reveal",
  "description": "Thin lines draw across one after another, and the title and placeholder bars beneath each line wipe in behind it as loading completes.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "loaders",
    "loader",
    "skeleton",
    "lines",
    "reveal",
    "progress",
    "placeholder"
  ],
  "docs": "https://hyperblur.dev/effects/loader-line-reveal",
  "files": [
    {
      "path": "registry/hyperblur/loader-line-reveal.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/loader-line-reveal.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface LoaderLineRevealProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\" | \"children\"> {\n  title?: string;\n  rows?: number;\n  value?: number;\n  duration?: number;\n  color?: string;\n}\n\nconst css = `\n@property --hb-zz7-p {\n  syntax: \"<number>\";\n  inherits: true;\n  initial-value: 0;\n}\n@keyframes hb-zz7-loop {\n  0% { --hb-zz7-p: 0; opacity: 0; }\n  5% { opacity: 1; }\n  78% { --hb-zz7-p: 1; }\n  92% { opacity: 1; }\n  100% { --hb-zz7-p: 1; opacity: 0; }\n}\n.hb-zz7 {\n  --hb-zz7-f: clamp(0, calc(var(--hb-zz7-p) * (var(--hb-zz7-n) + 1) - var(--hb-zz7-n)), 1);\n  box-sizing: border-box;\n  display: block;\n  width: 100%;\n  font-family: inherit;\n  color: #ededed;\n  transition: --hb-zz7-p 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);\n}\n.hb-zz7 *, .hb-zz7 *::before, .hb-zz7 *::after { box-sizing: border-box; }\n.hb-zz7[data-loop] { animation: hb-zz7-loop var(--hb-zz7-dur, 4.2s) linear infinite; }\n.hb-zz7-row {\n  --hb-zz7-r: clamp(0, calc(var(--hb-zz7-p) * (var(--hb-zz7-n) + 1) - var(--hb-zz7-i)), 1);\n  --hb-zz7-k: clamp(0, calc((var(--hb-zz7-r) - 0.3) / 0.7), 1);\n  position: relative;\n  padding: 12px 0;\n}\n.hb-zz7-row[data-title] { padding: 14px 0 16px; }\n.hb-zz7-ln {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  height: 1px;\n  background: #1f1f1f;\n}\n.hb-zz7-ln::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(90deg, transparent 0%, var(--hb-zz7-c) 72%, #ffffff 100%);\n  box-shadow: 0 0 10px color-mix(in srgb, var(--hb-zz7-c) 70%, transparent);\n  transform-origin: left center;\n  transform: scaleX(var(--hb-zz7-r));\n  opacity: calc(1 - var(--hb-zz7-f) * 0.85);\n}\n.hb-zz7-ct {\n  display: block;\n  clip-path: inset(0 calc((1 - var(--hb-zz7-k)) * 100%) 0 0);\n  opacity: var(--hb-zz7-k);\n  transform: translateY(calc((1 - var(--hb-zz7-k)) * 5px));\n}\n.hb-zz7-ti {\n  display: block;\n  margin: 0;\n  font-size: 1.6em;\n  font-weight: 600;\n  line-height: 1.2;\n  letter-spacing: -0.015em;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.hb-zz7-b {\n  display: block;\n  height: 10px;\n  border-radius: 6px;\n  background: linear-gradient(90deg, #1d1d1d, #262626 50%, #1d1d1d);\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-zz7 { transition: none; }\n  .hb-zz7[data-loop] { animation: none; --hb-zz7-p: 1; }\n}\n`;\n\nconst widths = [100, 88, 64, 94, 52, 78];\n\nexport function LoaderLineReveal({\n  title = \"Untitled\",\n  rows = 3,\n  value,\n  duration = 4.2,\n  color = \"#2f7bff\",\n  className = \"\",\n  style,\n  ...rest\n}: LoaderLineRevealProps) {\n  const controlled = typeof value === \"number\";\n  const clamped = controlled ? Math.min(100, Math.max(0, value)) : 0;\n  const bars = Math.max(0, Math.round(rows));\n  const vars = {\n    [\"--hb-zz7-n\" as string]: bars + 1,\n    [\"--hb-zz7-c\" as string]: color,\n    [\"--hb-zz7-dur\" as string]: `${Math.max(1, duration).toFixed(2)}s`,\n    ...(controlled ? { [\"--hb-zz7-p\" as string]: (clamped / 100).toFixed(3) } : null),\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <div\n      role={controlled ? \"progressbar\" : \"status\"}\n      aria-label={`Loading ${title}`}\n      aria-valuemin={controlled ? 0 : undefined}\n      aria-valuemax={controlled ? 100 : undefined}\n      aria-valuenow={controlled ? Math.round(clamped) : undefined}\n      {...rest}\n      className={`hb-zz7${className ? ` ${className}` : \"\"}`}\n      style={vars}\n      data-loop={controlled ? undefined : \"\"}\n    >\n      <style href=\"hb-loader-line-reveal\" precedence=\"default\">{css}</style>\n      <div className=\"hb-zz7-row\" data-title=\"\" style={{ [\"--hb-zz7-i\" as string]: 0 } as React.CSSProperties}>\n        <span className=\"hb-zz7-ln\" aria-hidden=\"true\" />\n        <span className=\"hb-zz7-ct\" aria-hidden=\"true\">\n          <span className=\"hb-zz7-ti\">{title}</span>\n        </span>\n      </div>\n      {Array.from({ length: bars }, (_, i) => (\n        <div key={i} className=\"hb-zz7-row\" style={{ [\"--hb-zz7-i\" as string]: i + 1 } as React.CSSProperties}>\n          <span className=\"hb-zz7-ln\" aria-hidden=\"true\" />\n          <span className=\"hb-zz7-ct\" aria-hidden=\"true\">\n            <span className=\"hb-zz7-b\" style={{ width: `${widths[i % widths.length]}%` }} />\n          </span>\n        </div>\n      ))}\n    </div>\n  );\n}\n"
    }
  ]
}